#include <synch.h>
Public Member Functions | |
Semaphore (char *debugName, int initialValue) | |
~Semaphore () | |
char * | getName () |
void | P () |
void | V () |
|
Definition at line 36 of file synch.cc.
|
|
Definition at line 49 of file synch.cc.
|
|
Definition at line 43 of file synch.h.
|
|
Definition at line 64 of file synch.cc. References List::Append(), currentThread, DEBUG(), Thread::getName(), interrupt, IntOff, IntStatus, Interrupt::SetLevel(), and Thread::Suspend(). Referenced by Ping(), and Pong().
|
|
Definition at line 88 of file synch.cc. References DEBUG(), Thread::getName(), interrupt, IntOff, IntStatus, Scheduler::ReadyToRun(), List::Remove(), scheduler, and Interrupt::SetLevel(). Referenced by Ping(), and Pong().
|