mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
CEventLoop: Protect the message queue with a Lock.
This commit is contained in:
parent
14ac77131b
commit
65f2f19b41
2 changed files with 21 additions and 3 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue