OOStuBS - Technische Informatik II (TI-II)  2.4
Öffentliche Methoden | Private Methoden | Private Attribute | Aufstellung aller Elemente
Customer Klassenreferenz

Extension of Thread able to wait in a Waitingroom. Mehr ...

#include <customer.h>

Klassendiagramm für Customer:
Inheritance graph
[Legende]
Zusammengehörigkeiten von Customer:
Collaboration graph
[Legende]

Öffentliche Methoden

 Customer ()
 Default Constructor.
Waitingroomwaiting_in () const
 Gets the room this thread is waiting in.
- Öffentliche Methoden geerbt von Thread
virtual void action ()=0
void exit ()
 Thread ()
void yield ()
 ~Thread ()
- Öffentliche Methoden geerbt von Queue::Element
 Element ()

Private Methoden

void waiting_in (Waitingroom *room)
 Sets the room this thread is waiting in.

Private Attribute

Waitingroomroom
 The waitingroom this thread waits in.

Ausführliche Beschreibung

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.

Siehe auch
Semaphore
Organizer

Definiert in Zeile 36 der Datei customer.h.

Beschreibung der Konstruktoren und Destruktoren

Customer::Customer ( )
inline

Default Constructor.

Initializes the thread and declares it non-waiting

Definiert in Zeile 50 der Datei customer.h.

Dokumentation der Elementfunktionen

void Customer::waiting_in ( Waitingroom room)
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.

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Waitingroom* Customer::waiting_in ( ) const
inline

Gets the room this thread is waiting in.

Overloaded getter method.

Definiert in Zeile 67 der Datei customer.h.

Dokumentation der Datenelemente

Waitingroom* Customer::room
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.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: