#include "copyright.h"#include "system.h"#include "synch.h"#include <time.h>#include "list.h"Go to the source code of this file.
Functions | |
| void | Ping (int ch) |
| void | Pong (int ch) |
| void | PingPong () |
| void | SimpleThread1 (int which) |
| void | ThreadTest1 (int arg) |
Variables | |
| Semaphore | SPing ("Ping", 1) |
| Semaphore | SPong ("Pong", 0) |
|
|
Definition at line 19 of file threadtest.cc. References Semaphore::P(), SPing, SPong, and Semaphore::V(). Referenced by PingPong().
|
|
|
Definition at line 43 of file threadtest.cc. References Thread::Fork(), Ping(), and Pong(). Referenced by ThreadTest1().
|
|
|
Definition at line 31 of file threadtest.cc. References Semaphore::P(), SPing, SPong, and Semaphore::V(). Referenced by PingPong().
|
|
|
Definition at line 54 of file threadtest.cc. Referenced by ThreadTest1().
|
|
|
Definition at line 78 of file threadtest.cc. References Thread::Fork(), PingPong(), and SimpleThread1(). Referenced by main().
|
|
|
|
|
|
|
1.3.8