OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
include
thread
dispatch.h
gehe zur Dokumentation dieser Datei
1
/*---------------------------------------------------------------------------*
2
* Operating Systems I *
3
*---------------------------------------------------------------------------*
4
* *
5
* D I S P A T C H E R *
6
* *
7
*---------------------------------------------------------------------------*/
8
9
#ifndef __dispatch_include__
10
#define __dispatch_include__
11
12
/* * * * * * * * * * * * * * * * * * * * * * * * *\
13
# INCLUDES #
14
\* * * * * * * * * * * * * * * * * * * * * * * * */
15
16
#include "
thread/thread.h
"
17
18
/* * * * * * * * * * * * * * * * * * * * * * * * *\
19
# CLASSES #
20
\* * * * * * * * * * * * * * * * * * * * * * * * */
21
30
class
Dispatcher
{
31
private
:
36
Thread
*
current
;
37
38
39
public
:
44
Dispatcher
() :
current
(0){}
45
54
void
start
(
Thread
& first);
55
64
void
dispatch
(
Thread
& next);
65
70
Thread
*
active
()
const
{
71
return
current
;
72
}
73
};
74
75
#endif
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2