summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/EventLoop.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-23 19:45:12 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-25 14:48:40 +0200
commit1587caef842c66ed382fc75c8f116d09ea7acc06 (patch)
tree731e8f371274050da5559a2387ef3a1c272d859b /Userland/Libraries/LibCore/EventLoop.h
parent3a70a16ca78d2627c0b754ae872b8363c8154f8f (diff)
downloadserenity-1587caef842c66ed382fc75c8f116d09ea7acc06.zip
LibCore: Move event queueing to a per-thread event queue
Instead of juggling events between individual instances of Core::EventLoop, move queueing and processing to a separate per-thread queue (ThreadEventQueue).
Diffstat (limited to 'Userland/Libraries/LibCore/EventLoop.h')
-rw-r--r--Userland/Libraries/LibCore/EventLoop.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.h b/Userland/Libraries/LibCore/EventLoop.h
index d9a75cb4e4..8feaf4e84e 100644
--- a/Userland/Libraries/LibCore/EventLoop.h
+++ b/Userland/Libraries/LibCore/EventLoop.h
@@ -111,11 +111,6 @@ public:
};
static void notify_forked(ForkEvent);
- void take_pending_events_from(EventLoop& other)
- {
- m_queued_events.extend(move(other.m_queued_events));
- }
-
static EventLoop& current();
private:
@@ -124,20 +119,6 @@ private:
static void dispatch_signal(int);
static void handle_signal(int);
- struct QueuedEvent {
- AK_MAKE_NONCOPYABLE(QueuedEvent);
-
- public:
- QueuedEvent(Object& receiver, NonnullOwnPtr<Event>);
- QueuedEvent(QueuedEvent&&);
- ~QueuedEvent() = default;
-
- WeakPtr<Object> receiver;
- NonnullOwnPtr<Event> event;
- };
-
- Vector<QueuedEvent, 64> m_queued_events;
- Vector<NonnullRefPtr<Promise<NonnullRefPtr<Object>>>> m_pending_promises;
static pid_t s_pid;
bool m_exit_requested { false };