diff options
Diffstat (limited to 'Kernel/WaitQueue.h')
-rw-r--r-- | Kernel/WaitQueue.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/WaitQueue.h b/Kernel/WaitQueue.h index c7705880bc..b6fa0e3691 100644 --- a/Kernel/WaitQueue.h +++ b/Kernel/WaitQueue.h @@ -38,9 +38,9 @@ public: WaitQueue(); ~WaitQueue(); - void enqueue(Thread&); + bool enqueue(Thread&); void wake_one(Atomic<bool>* lock = nullptr); - void wake_n(i32 wake_count); + void wake_n(u32 wake_count); void wake_all(); void clear(); @@ -48,6 +48,7 @@ private: typedef IntrusiveList<Thread, &Thread::m_wait_queue_node> ThreadList; ThreadList m_threads; SpinLock<u32> m_lock; + bool m_wake_requested { false }; }; } |