1
Fork 0
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:
Andreas Kling 2019-04-29 15:57:49 +02:00
parent 14ac77131b
commit 65f2f19b41
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 };