1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

LibCore: Remove unused EventLoopManager::wake()

Only EventLoopImplementation needs to know how to wake up.
This commit is contained in:
Andreas Kling 2023-04-26 19:00:22 +02:00 committed by Sam Atkins
parent 12c73915dc
commit f61947fa9e
5 changed files with 0 additions and 16 deletions

View file

@ -35,8 +35,6 @@ public:
virtual int register_signal(int signal_number, Function<void(int)> handler) = 0;
virtual void unregister_signal(int handler_id) = 0;
virtual void wake() = 0;
protected:
EventLoopManager();
};

View file

@ -139,12 +139,6 @@ void EventLoopImplementationUnix::wake()
MUST(Core::System::write((*m_wake_pipe_fds)[1], { &wake_event, sizeof(wake_event) }));
}
void EventLoopManagerUnix::wake()
{
int wake_event = 0;
MUST(Core::System::write(ThreadData::the().wake_pipe_fds[1], { &wake_event, sizeof(wake_event) }));
}
void EventLoopManagerUnix::wait_for_events(EventLoopImplementation::PumpMode mode)
{
auto& thread_data = ThreadData::the();

View file

@ -27,8 +27,6 @@ public:
virtual int register_signal(int signal_number, Function<void(int)> handler) override;
virtual void unregister_signal(int handler_id) override;
virtual void wake() override;
void wait_for_events(EventLoopImplementation::PumpMode);
static Optional<Time> get_next_timer_expiration();