ladybird/Libraries/LibThread
Andrew Kaster 644f5ec160 LibThread: Give Thread std::jthread semantics
Because pthread_create will always call pthread_exit internally before
exiting the thread function, we can remove the odd requirement that the
user's thread function must call Thread::quit internally.

Make Thread::join clear m_tid on success, and print to stderr on
failure. Call join from ~Thread(). Now if you write an infinite loop in
your thread in an application and don't have an exit condition, you will
block in the thread's destructor forever. Time for stop_token? :)
2020-12-31 21:59:20 +01:00
..
BackgroundAction.cpp
BackgroundAction.h
CMakeLists.txt
Lock.h
Thread.cpp LibThread: Give Thread std::jthread semantics 2020-12-31 21:59:20 +01:00
Thread.h