CEventLoop: Protect the message queue with a Lock.

This commit is contained in:
Andreas Kling 2019-04-29 15:57:49 +02:00
commit 65f2f19b41
Notes: sideshowbarker 2024-07-19 14:32:35 +09:00
2 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <LibCore/CLock.h>
#include <AK/Badge.h>
#include <AK/HashMap.h>
#include <AK/OwnPtr.h>
@ -58,6 +59,8 @@ private:
bool m_exit_requested { false };
int m_exit_code { 0 };
CLock m_lock;
struct EventLoopTimer {
int timer_id { 0 };
int interval { 0 };