1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:57:45 +00:00

LibThread: Move CLock to LibThread::Lock

And adapt all the code that uses it.
This commit is contained in:
Sergey Bugaev 2019-08-25 23:51:27 +03:00 committed by Andreas Kling
parent 0826cc5a35
commit 3439a479af
7 changed files with 42 additions and 34 deletions

View file

@ -6,8 +6,8 @@
#include <AK/Queue.h>
#include <AK/RefCounted.h>
#include <LibCore/CEventLoop.h>
#include <LibCore/CLock.h>
#include <LibCore/CObject.h>
#include <LibThread/Lock.h>
#include <LibThread/Thread.h>
namespace LibThread {
@ -22,7 +22,7 @@ class BackgroundActionBase {
private:
BackgroundActionBase() {}
static CLockable<Queue<Function<void()>>>& all_actions();
static Lockable<Queue<Function<void()>>>& all_actions();
static Thread& background_thread();
};