OOStuBS - Technische Informatik II (TI-II)  2.4
organizer.cc
gehe zur Dokumentation dieser Datei
1 #include "thread/organizer.h"
2 #include "object/lock.h"
3 #include "locking/scopedLock.h"
4 #include "common/null.h"
5 #include "object/log.h"
6 
8  room.push_back(*active());
9  active()->waiting_in(&room);
10  log << "Suspending Thread " << active() << endl;
11  next();
12 }
13 
14 void Organizer::wakeup(Customer& customer){
15  // ergänzen //
16 
17  log << "Reactivating Thread " << &customer << endl;
18 }
19 //
21  // ergänzen //
22 
23  return true; //<-- Platzhalter
24 }
25 
27  return static_cast<Customer*>(Scheduler::active());
28 }