mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-25 18:52:22 -05:00
19 lines
248 B
C
19 lines
248 B
C
|
#pragma once
|
||
|
|
||
|
#include <AK/SinglyLinkedList.h>
|
||
|
|
||
|
class Thread;
|
||
|
|
||
|
class WaitQueue {
|
||
|
public:
|
||
|
WaitQueue();
|
||
|
~WaitQueue();
|
||
|
|
||
|
void enqueue(Thread&);
|
||
|
void wake_one();
|
||
|
void wake_all();
|
||
|
|
||
|
private:
|
||
|
SinglyLinkedList<Thread*> m_threads;
|
||
|
};
|