diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-22 18:47:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-22 18:54:22 +0200 |
commit | b5d73c834ff0f4cb1ff6112f055bee4cd02b21ec (patch) | |
tree | 82aae5e6a9d2d798b9810770b15f2a9d3cb04161 /Userland/Libraries/LibCore/EventLoop.cpp | |
parent | 5729b4e9a5658d8728239e3141ff270004af5d6c (diff) | |
download | serenity-b5d73c834ff0f4cb1ff6112f055bee4cd02b21ec.zip |
Userland: Rename LibThread => LibThreading
Also rename the "LibThread" namespace to "Threading"
Diffstat (limited to 'Userland/Libraries/LibCore/EventLoop.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/EventLoop.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index 7d95890768..23dabfc764 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -21,7 +21,7 @@ #include <LibCore/LocalSocket.h> #include <LibCore/Notifier.h> #include <LibCore/Object.h> -#include <LibThread/Lock.h> +#include <LibThreading/Lock.h> #include <errno.h> #include <fcntl.h> #include <signal.h> @@ -54,7 +54,7 @@ struct EventLoopTimer { }; struct EventLoop::Private { - LibThread::Lock lock; + Threading::Lock lock; }; static EventLoop* s_main_event_loop; @@ -372,7 +372,7 @@ void EventLoop::pump(WaitMode mode) decltype(m_queued_events) events; { - LibThread::Locker locker(m_private->lock); + Threading::Locker locker(m_private->lock); events = move(m_queued_events); } @@ -401,7 +401,7 @@ void EventLoop::pump(WaitMode mode) } if (m_exit_requested) { - LibThread::Locker locker(m_private->lock); + Threading::Locker locker(m_private->lock); dbgln_if(EVENTLOOP_DEBUG, "Core::EventLoop: Exit requested. Rejigging {} events.", events.size() - i); decltype(m_queued_events) new_event_queue; new_event_queue.ensure_capacity(m_queued_events.size() + events.size()); @@ -416,7 +416,7 @@ void EventLoop::pump(WaitMode mode) void EventLoop::post_event(Object& receiver, NonnullOwnPtr<Event>&& event) { - LibThread::Locker lock(m_private->lock); + Threading::Locker lock(m_private->lock); dbgln_if(EVENTLOOP_DEBUG, "Core::EventLoop::post_event: ({}) << receivier={}, event={}", m_queued_events.size(), receiver, event); m_queued_events.empend(receiver, move(event)); } @@ -600,7 +600,7 @@ retry: bool queued_events_is_empty; { - LibThread::Locker locker(m_private->lock); + Threading::Locker locker(m_private->lock); queued_events_is_empty = m_queued_events.is_empty(); } |