StuBS
Loading...
Searching...
No Matches
Waitingroom Class Reference

List of threads waiting for an event. More...

#include <waitingroom.h>

Inheritance diagram for Waitingroom:
Collaboration diagram for Waitingroom:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Waitingroom()

Waitingroom::Waitingroom ( )
inline

Constructor.

Creates an empty Waitingroom

◆ ~Waitingroom()

Waitingroom::~Waitingroom ( )
virtual

Destructor.

The destructor removes and awakes all remaining threads.


The documentation for this class was generated from the following files: