OOStuBS - Technische Informatik II (TI-II)  2.4
watch.cc
gehe zur Dokumentation dieser Datei
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2  * Technische Informatik II *
3  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4  * *
5  * W A T C H *
6  * *
7 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 /* * * * * * * * * * * * * * * * * * * * * * * * *\
10 # INCLUDES #
11 \* * * * * * * * * * * * * * * * * * * * * * * * */
12 
13 #include "device/watch.h"
14 #include "object/imanager.h"
15 #include "object/scheduler.h"
16 
17 /* * * * * * * * * * * * * * * * * * * * * * * * *\
18 # METHODS #
19 \* * * * * * * * * * * * * * * * * * * * * * * * */
20 
21 void Watch::windup(unsigned int ms){
22  this->interval(ms);
24 }
25 
27  scheduler.preempt();
28 }