OOStuBS - Technische Informatik II (TI-II)  2.4
dispatch.cc
gehe zur Dokumentation dieser Datei
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2  * Technische Informatik II *
3  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4  * *
5  * D I S P A T C H E R *
6  * *
7 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 /* * * * * * * * * * * * * * * * * * * * * * * * *\
10 # INCLUDES #
11 \* * * * * * * * * * * * * * * * * * * * * * * * */
12 
13 #include "thread/dispatch.h"
14 
15 /* * * * * * * * * * * * * * * * * * * * * * * * *\
16 # METHODS #
17 \* * * * * * * * * * * * * * * * * * * * * * * * */
18 
20  current=&first;
21  first.context.set();
22 }
23 
25  Thread& temp=*current;
26  current=&next;
27  temp.context.swap(next.context);
28 }