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

Managing currently active threads. Mehr ...

#include <dispatch.h>

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

Öffentliche Methoden

Threadactive () const
 Returns the currently active thread.
void dispatch (Thread &next)
 Switch to another thread.
 Dispatcher ()
void start (Thread &first)
 Starts the scheduling.

Private Attribute

Threadcurrent

Ausführliche Beschreibung

Managing currently active threads.

The dispatcher changes the currently active thread if the system. It keeps track of all effectively running therads and management the transition of one thread to another. In the current setup only single CPU systems are supported.

Definiert in Zeile 30 der Datei dispatch.h.

Beschreibung der Konstruktoren und Destruktoren

Dispatcher::Dispatcher ( )
inline

Definiert in Zeile 44 der Datei dispatch.h.

Dokumentation der Elementfunktionen

Thread* Dispatcher::active ( ) const
inline

Returns the currently active thread.

Rückgabe
pointer to the currently active thread.

Erneute Implementation in Scheduler und Organizer.

Definiert in Zeile 70 der Datei dispatch.h.

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

void Dispatcher::dispatch ( Thread next)

Switch to another thread.

The new thread is specified as the parameter of the call. During the transition the old thread context is saved and the new thread context is installed on the CPU.

Parameter
nextReference to the new active thread.

Definiert in Zeile 24 der Datei dispatch.cc.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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

void Dispatcher::start ( Thread first)

Starts the scheduling.

The scheduling is started through a transition to the first thread available in the system. This transition is one way. The original context is not saved and can therefore never be restored.

Parameter
firstReference of the first thread scheduled in the system.

Definiert in Zeile 19 der Datei dispatch.cc.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Dokumentation der Datenelemente

Thread* Dispatcher::current
private

Definiert in Zeile 36 der Datei dispatch.h.


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