Compared to v1 patch: httpserver now directly calls the app:run(). The run_backgroud() is then not used anymore.
The pthread_gettid_np() and application::get_main_thread_id() are still needed. First one because pthread_t has to be convert to pthread* with pthread::from_libc(), and that class is visible in pthread.cc only. Second one because osv::application::_thread is private to osv::application. Justin Cinkelj (4): libc: add pthread_gettid_np to get thread ID of arbitrary pthread_t app: return thread ID running app's main function httpserver: return thread ID of the started app httpserver: report if application did finish core/app.cc | 4 ++++ include/api/pthread.h | 1 + include/osv/app.hh | 5 ++++ libc/pthread.cc | 5 ++++ modules/httpserver/api-doc/listings/app.json | 26 +++++++++++++++++++++ modules/httpserver/api/app.cc | 35 ++++++++++++++++++++++++---- 6 files changed, 72 insertions(+), 4 deletions(-) -- 2.9.3 -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.