#include "copyright.h"#include "system.h"Go to the source code of this file.
Functions | |
| void | SimpleThread (int which) |
| void | ThreadTest () |
|
|
Definition at line 25 of file threadtest.cc. Referenced by ThreadTest.
00026 {
00027 int num;
00028
00029 for (num = 0; num < 5; num++) {
00030 printf("*** thread %d looped %d times\n", which, num);
00031 currentThread->Yield();
00032 }
00033 }
|
|
|
Definition at line 42 of file threadtest.cc. References DEBUG, Thread::Fork, and SimpleThread.
00043 {
00044 DEBUG('t', "Entering SimpleTest");
00045
00046 Thread *t = new Thread("forked thread");
00047
00048 t->Fork(SimpleThread, 1);
00049 SimpleThread(0);
00050 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002