#include <thread.h>
Public Member Functions | |
Thread (char *debugName) | |
~Thread () | |
void | Fork (VoidFunctionPtr func, int arg) |
void | Yield () |
void | Suspend () |
void | Finish () |
void | Sleep (int sec) |
void | UnSleep () |
void | CheckOverflow () |
void | setStatus (ThreadStatus st) |
char * | getName () |
void | Print () |
ThreadStatus | GetStatus () |
Public Attributes | |
sigjmp_buf | cbuff |
int | started |
char | which |
|
Definition at line 40 of file thread.cc. References JUST_CREATED, and started.
|
|
Definition at line 64 of file thread.cc. References ASSERT, currentThread, DeallocBoundedArray(), DEBUG(), and StackSize.
|
|
Definition at line 121 of file thread.cc. References ASSERT, STACK_FENCEPOST, and StackSize.
|
|
Definition at line 147 of file thread.cc. References ASSERT, currentThread, DEBUG(), getName(), interrupt, IntOff, Interrupt::SetLevel(), Suspend(), and threadToBeDestroyed.
|
|
Definition at line 93 of file thread.cc. References DEBUG(), interrupt, IntOff, IntStatus, Scheduler::ReadyToRun(), scheduler, Interrupt::SetLevel(), and VoidFunctionPtr. Referenced by PingPong(), and ThreadTest1().
|
|
Definition at line 110 of file thread.h. Referenced by Finish(), Semaphore::P(), Machine::Run(), schedule(), Suspend(), Semaphore::V(), and Yield().
|
|
Definition at line 113 of file thread.h. References ThreadStatus.
|
|
Definition at line 111 of file thread.h. Referenced by ThreadPrint().
|
|
Definition at line 109 of file thread.h. Referenced by Scheduler::ReadyToRun(), and schedule().
|
|
Definition at line 229 of file thread.cc. References cbuff, currentThread, interrupt, IntOff, IntStatus, SCHED, and Interrupt::SetLevel().
|
|
Definition at line 210 of file thread.cc. References ASSERT, BLOCKED, cbuff, currentThread, DEBUG(), getName(), Interrupt::Idle(), interrupt, Scheduler::IsEmpty(), SCHED, and scheduler. Referenced by Finish(), and Semaphore::P().
|
|
Definition at line 245 of file thread.cc. References interrupt, IntOff, IntStatus, and Interrupt::SetLevel().
|
|
Definition at line 177 of file thread.cc. References ASSERT, cbuff, currentThread, DEBUG(), getName(), interrupt, IntOff, IntStatus, schedule(), and Interrupt::SetLevel(). Referenced by Interrupt::OneTick().
|
|
Definition at line 124 of file thread.h. Referenced by schedule(), Sleep(), Suspend(), Scheduler::timerIntH(), and Yield(). |
|
Definition at line 125 of file thread.h. Referenced by schedule(), and Thread(). |
|