OOStuBS - Technische Informatik II (TI-II)
2.4
|
A waitingroom Customers can wait in. Mehr ...
#include <waitingroom.h>
Öffentliche Methoden | |
virtual | ~Waitingroom () |
Destructor reactivating waiting customers. | |
![]() | |
bool | empty () const |
Element * | peek_front () const |
Element * | pop_front () |
void | push_back (Element &e) |
Queue () | |
bool | remove (Element &e) |
virtual | ~Queue () |
A waitingroom Customers can wait in.
The waitingroom consists of a queue the customers wait in until they can be serviced. On destruction of a waitingroom all waiting customers need to be released. In this case the result of the operation the customers waited for depends on the implementation of the service the customers waited for.
Definiert in Zeile 31 der Datei waitingroom.h.
|
virtual |
Destructor reactivating waiting customers.
The waiting customers need to be reactivated on destrcution of the waitingroom since otherwise they will never be scheduled to run again.
Definiert in Zeile 7 der Datei waitingroom.cc.