summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index c17b43bbba..18f8546464 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -1,5 +1,6 @@
#pragma once
+#include <AK/Atomic.h>
#include <AK/Function.h>
#include <AK/IntrusiveList.h>
#include <AK/OwnPtr.h>
@@ -300,7 +301,7 @@ public:
return block<ConditionBlocker>(state_string, move(condition));
}
- void wait_on(WaitQueue& queue, Thread* beneficiary = nullptr, const char* reason = nullptr);
+ void wait_on(WaitQueue& queue, Atomic<bool>* lock = nullptr, Thread* beneficiary = nullptr, const char* reason = nullptr);
void wake_from_queue();
void unblock();