StuBS
|
List of threads waiting for an event. More...
#include <waitingroom.h>
Public Member Functions | |
Waitingroom () | |
Constructor. | |
virtual | ~Waitingroom () |
Destructor. | |
virtual void | remove (Thread *customer) |
Remove a given thread prematurely from the Waitingroom. | |
Static Protected Member Functions | |
static Thread ** | getNext (Thread &th, unsigned i) |
Get the next thread of the queue. | |
Friends | |
class | Scheduler |
List of threads waiting for an event.
The class Waitingroom implements a list of threads that all wait for one particular event.
The destructor should be virtual to properly cleanup derived classes.
|
inline |
Constructor.
Creates an empty Waitingroom
|
virtual |
Destructor.
The destructor removes and awakes all remaining threads.