mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +00:00
LibThread: Move CLock to LibThread::Lock
And adapt all the code that uses it.
This commit is contained in:
parent
0826cc5a35
commit
3439a479af
7 changed files with 42 additions and 34 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue