Main Page | Alphabetical List | Class List | File List | Class Members | File Members

thread.h File Reference

#include "copyright.h"
#include "utility.h"
#include <setjmp.h>
#include <ucontext.h>

Go to the source code of this file.

Classes

class  Thread

Defines

#define MachineStateSize   18
#define StackSize   (32 * 1024)

Enumerations

enum  ThreadStatus {
  JUST_CREATED, RUNNING, READY, BLOCKED,
  SLEEPING
}

Functions

void ThreadPrint (int arg)
void ThreadRoot ()
void SWITCH (Thread *oldThread, Thread *newThread)


Define Documentation

#define MachineStateSize   18
 

Definition at line 53 of file thread.h.

#define StackSize   (32 * 1024)
 

Definition at line 58 of file thread.h.

Referenced by Thread::CheckOverflow(), and Thread::~Thread().


Enumeration Type Documentation

enum ThreadStatus
 

Enumeration values:
JUST_CREATED 
RUNNING 
READY 
BLOCKED 
SLEEPING 
Definition at line 62 of file thread.h.

Referenced by Thread::GetStatus().


Function Documentation

void SWITCH Thread oldThread,
Thread newThread
 

Referenced by schedule().

void ThreadPrint int  arg  ) 
 

Definition at line 268 of file thread.cc.

References Thread::Print().

Referenced by Scheduler::Print().

00268 { Thread *t = (Thread *)arg; t->Print(); }

void ThreadRoot  ) 
 


Generated on Thu Sep 16 12:33:47 2004 for NachOS by doxygen 1.3.8