StuBS
|
List of threads waiting for an event. More...
#include <waitingroom.h>
Public Member Functions | |
Waitingroom () | |
Constructor. More... | |
virtual | ~Waitingroom () |
Destructor. More... | |
virtual void | remove (Thread *customer) |
Remove a given thread prematurely from the Waitingroom. More... | |
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.
|
virtual |
Remove a given thread prematurely from the Waitingroom.