OOStuBS - Technische Informatik II (TI-II)  2.4
organizer.h
gehe zur Dokumentation dieser Datei
1 /*---------------------------------------------------------------------------*
2  * Technical Computer Science II *
3  *---------------------------------------------------------------------------*
4  * *
5  * O R G A N I Z E R *
6  * *
7  *---------------------------------------------------------------------------*/
8 
9 #ifndef __organizer_header__
10 #define __organizer_header__
11 
12 /* * * * * * * * * * * * * * * * * * * * * * * * *\
13 # INCLUDES #
14 \* * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 #include "thread/scheduler.h"
17 #include "thread/customer.h"
18 #include "thread/waitingroom.h"
19 
20 /* * * * * * * * * * * * * * * * * * * * * * * * *\
21 # CLASSES #
22 \* * * * * * * * * * * * * * * * * * * * * * * * */
23 
35 class Organizer : public Scheduler{
36  public:
45  void block(Waitingroom& waitingroom);
46 
54  void wakeup(Customer& customer);
55 
66  bool kill(Customer& that);
67 
72  Customer* active() const;
73 };
74 
75 #endif