OOStuBS - Technische Informatik II (TI-II)  2.4
waitingroom.cc
gehe zur Dokumentation dieser Datei
1 #include "thread/waitingroom.h"
2 
3 #include "object/lock.h"
4 #include "locking/scopedLock.h"
5 #include "object/scheduler.h"
6 
8  ScopedLock scopedLock(lock);
9  while(!empty())
10  scheduler.wakeup(*static_cast<Customer*>(pop_front()));
11 }