mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
69c1910037
The event loop system was previously very singletony to the point that
there's only a single event loop stack per process and only one event
loop (the topmost) can run at a time. This commit simply makes the event
loop stack and related structures thread-local so that each thread has
an isolated event loop system.
Some things are kept at a global level and synchronized with the new
MutexProtected: The main event loop needs to still be obtainable from
anywhere, as it closes down the application when it exits. The ID
allocator is global as IDs should not be shared even between threads.
And for the inspector server connection, the same as for the main loop
holds.
Note that currently, the wake pipe is only created by the main thread,
so notifications don't work on other threads.
This removes the temporary mutex fix for notifiers, introduced in
|
||
---|---|---|
.. | ||
10kb.txt | ||
CMakeLists.txt | ||
long_lines.txt | ||
small.txt | ||
TestLibCoreArgsParser.cpp | ||
TestLibCoreDeferredInvoke.cpp | ||
TestLibCoreFilePermissionsMask.cpp | ||
TestLibCoreFileWatcher.cpp | ||
TestLibCoreIODevice.cpp | ||
TestLibCoreStream.cpp |