OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
src
thread
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
7
void
Organizer::block
(
Waitingroom
& room){
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
//
20
bool
Organizer::kill
(
Customer
& that){
21
// ergänzen //
22
23
return
true
;
//<-- Platzhalter
24
}
25
26
Customer
*
Organizer::active
()
const
{
27
return
static_cast<
Customer
*
>
(
Scheduler::active
());
28
}
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2