ladybird/Userland/Libraries/LibThreading
kleines Filmröllchen 704bb361bb LibCore: Allow event loops on other threads to wake up
Because the wake pipe is thread-local, it was previously not possible
to wake an event loop across a thread. Therefore, this commit
rearchitects event loop waking by making the wake function a member of
the event loop itself and having it keep a pointer to its thread's wake
pipe. The global wake() function calls wake on the current thread's
event loop.

This also fixes a bug in BackgroundAction: it should wake the event loop
it was created on, instead of the current thread's event loop.
2022-02-13 23:06:53 +01:00
..
BackgroundAction.cpp LibThreading: Rename Lock => Mutex 2021-07-09 11:15:50 +02:00
BackgroundAction.h LibCore: Allow event loops on other threads to wake up 2022-02-13 23:06:53 +01:00
CMakeLists.txt Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
ConditionVariable.h Everywhere: Use my new serenityos.org e-mail :^) 2022-01-14 11:54:09 +01:00
Mutex.h LibThreading: Introduce MutexProtected generic synchronization primitive 2022-01-23 15:21:10 +01:00
MutexProtected.h LibThreading: Introduce MutexProtected generic synchronization primitive 2022-01-23 15:21:10 +01:00
Thread.cpp LibThreading: Add new detach() API to Thread 2021-07-02 17:52:45 +02:00
Thread.h LibThreading: Add new detach() API to Thread 2021-07-02 17:52:45 +02:00