mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
19 lines
319 B
C++
19 lines
319 B
C++
#pragma once
|
|
|
|
#include <AK/SinglyLinkedList.h>
|
|
#include <Kernel/Thread.h>
|
|
|
|
class WaitQueue {
|
|
public:
|
|
WaitQueue();
|
|
~WaitQueue();
|
|
|
|
void enqueue(Thread&);
|
|
void wake_one();
|
|
void wake_all();
|
|
|
|
private:
|
|
typedef IntrusiveList<Thread, &Thread::m_wait_queue_node> ThreadList;
|
|
ThreadList m_threads;
|
|
};
|