summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/EventLoop.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCore/EventLoop.h')
-rw-r--r--Userland/Libraries/LibCore/EventLoop.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.h b/Userland/Libraries/LibCore/EventLoop.h
index a8519507b4..7b49eb8e8f 100644
--- a/Userland/Libraries/LibCore/EventLoop.h
+++ b/Userland/Libraries/LibCore/EventLoop.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2018-2023, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
@@ -55,11 +55,6 @@ public:
Yes,
};
- enum class ShouldWake {
- No,
- Yes
- };
-
enum class WaitMode {
WaitForEvents,
PollForEvents,
@@ -82,9 +77,8 @@ public:
// Pump the event loop until some condition is met.
void spin_until(Function<bool()>);
- // Post an event to this event loop and possibly wake the loop.
- void post_event(Object& receiver, NonnullOwnPtr<Event>&&, ShouldWake = ShouldWake::No);
- void wake_once(Object& receiver, int custom_event_type);
+ // Post an event to this event loop.
+ void post_event(Object& receiver, NonnullOwnPtr<Event>&&);
void add_job(NonnullRefPtr<Promise<NonnullRefPtr<Object>>> job_promise);