1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

LibCore: Make Core::s_main_event_loop actually global

This was accidentally per-TU, as it was declared "static" in the header.
This commit is contained in:
Andreas Kling 2022-01-25 08:49:43 +01:00
parent 8dfd124718
commit 3bab93c5e7
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ struct EventLoop::Private {
};
// The main event loop is global to the program, so it may be accessed from multiple threads.
// NOTE: s_main_event_loop is not declared here as it is needed in the header.
Threading::MutexProtected<EventLoop*> s_main_event_loop;
static Threading::MutexProtected<NeverDestroyed<IDAllocator>> s_id_allocator;
static Threading::MutexProtected<RefPtr<InspectorServerConnection>> s_inspector_server_connection;