StuBS
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. More...
 
virtual ~Waitingroom ()
 Destructor. More...
 
virtual void remove (Thread *customer)
 Remove a given thread prematurely from the Waitingroom. More...
 

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.

Member Function Documentation

◆ remove()

void Waitingroom::remove ( Thread customer)
virtual

Remove a given thread prematurely from the Waitingroom.


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