OOStuBS - Technische Informatik II (TI-II)
2.4
|
Extension of Thread able to wait in a Waitingroom. Mehr ...
#include <customer.h>
Öffentliche Methoden | |
Customer () | |
Default Constructor. | |
Waitingroom * | waiting_in () const |
Gets the room this thread is waiting in. | |
![]() | |
virtual void | action ()=0 |
void | exit () |
Thread () | |
void | yield () |
~Thread () | |
![]() | |
Element () |
Private Methoden | |
void | waiting_in (Waitingroom *room) |
Sets the room this thread is waiting in. |
Private Attribute | |
Waitingroom * | room |
The waitingroom this thread waits in. |
Extension of Thread able to wait in a Waitingroom.
This class extends the basic thread pseudo-concurrency to allow waiting on conditions. The condition responsible for blocking and reactivating the thread is defined by the implementation of the waitingroom.
Definiert in Zeile 36 der Datei customer.h.
|
inline |
Default Constructor.
Initializes the thread and declares it non-waiting
Definiert in Zeile 50 der Datei customer.h.
|
inlineprivate |
Sets the room this thread is waiting in.
Overloaded setter method, which may only be called by Organizer.
Definiert in Zeile 58 der Datei customer.h.
|
inline |
Gets the room this thread is waiting in.
Overloaded getter method.
Definiert in Zeile 67 der Datei customer.h.
|
private |
The waitingroom this thread waits in.
If NULL this thread is not waiting in any room.
Definiert in Zeile 43 der Datei customer.h.