OOStuBS - Technische Informatik II (TI-II)  2.4
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:
37 
38 
39 public:
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