1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 12:00:59 +00:00
serenity/Userland/Applications/SystemMonitor
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
..
CMakeLists.txt SystemMonitor: Port to LibMain :^) 2021-12-04 14:24:04 +01:00
GraphWidget.cpp SystemMonitor: Use u64 for all GraphWidget values 2021-10-07 00:42:24 +02:00
GraphWidget.h SystemMonitor: Use u64 for all GraphWidget values 2021-10-07 00:42:24 +02:00
main.cpp SystemMonitor: Show unknown in PCI devices 2022-01-19 21:47:40 -08:00
MemoryStatsWidget.cpp SystemMonitor: Remove unused functions and enable warning globally 2022-01-04 07:51:31 +00:00
MemoryStatsWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NetworkStatisticsWidget.cpp LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr 2021-12-24 05:11:52 -08:00
NetworkStatisticsWidget.h SystemMonitor: Display connection status icons in Network tab 2021-07-27 00:28:12 +02:00
ProcessFileDescriptorMapWidget.cpp LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr 2021-12-24 05:11:52 -08:00
ProcessFileDescriptorMapWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProcessMemoryMapWidget.cpp LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr 2021-12-24 05:11:52 -08:00
ProcessMemoryMapWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProcessModel.cpp Userland: Resolve unused-but-set-varaible warnings 2022-01-04 07:51:31 +00:00
ProcessModel.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ProcessStateWidget.cpp SystemMonitor: Remove unused SortingProxyModel include 2021-12-24 05:11:52 -08:00
ProcessStateWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProcessUnveiledPathsWidget.cpp LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr 2021-12-24 05:11:52 -08:00
ProcessUnveiledPathsWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ThreadStackWidget.cpp LibCore: Allow EventLoops to run on multiple threads safely 2022-01-23 15:21:10 +01:00
ThreadStackWidget.h SystemMonitor: Use a TableView to display the thread stack 2021-10-15 22:10:03 -07:00