ladybird/Tests/LibCore
kleines Filmröllchen 69c1910037 LibCore: Allow EventLoops to run on multiple threads safely
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
0631d3fed5 .
2022-01-23 15:21:10 +01:00
..
10kb.txt LibCore: Fix relative seeking in IODevice 2021-11-30 10:51:10 +01:00
CMakeLists.txt LibCore: Add FilePermissionsMask 2022-01-01 17:33:43 +00:00
long_lines.txt LibCore: Add unit test for File::read_line 2021-06-22 18:54:40 +04:30
small.txt Tests/LibCore: Add regression test for the read_until_any_of OOB read 2022-01-01 14:44:02 +01:00
TestLibCoreArgsParser.cpp Tests: Fix TestLibCoreArgsParser with add_positional_argument API change 2021-11-26 18:57:26 -08:00
TestLibCoreDeferredInvoke.cpp Tests: Add tests for Core::deferred_invoke 2021-09-02 03:47:47 +04:30
TestLibCoreFilePermissionsMask.cpp LibCore: Add FilePermissionsMask 2022-01-01 17:33:43 +00:00
TestLibCoreFileWatcher.cpp Tests: Add InodeWatcher and FileWatcher tests 2021-05-12 22:38:20 +02:00
TestLibCoreIODevice.cpp Tests: Remove some temporary files when finished using them 2022-01-14 00:20:30 +01:00
TestLibCoreStream.cpp LibCore: Allow EventLoops to run on multiple threads safely 2022-01-23 15:21:10 +01:00