Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Thread Class Reference

#include <mythread.h>

List of all members.

Public Methods

 Thread (Semaphore *sem=NULL, int pri=10)
void SetSemaphore (Semaphore *sem)
virtual ~Thread ()
pthread_t ID ()
bool isExit ()
void Exit ()
int StartMain (void *var=NULL)
int Kill ()
bool isRunning ()
void SetPriority (int pri)
SemaphoreLock ()
int Wait ()
int Post ()

Public Attributes

void * vptr

Protected Methods

virtual void RunMain (void *var=NULL)=0

Protected Attributes

bool run_flag

Friends

void Thread_ThreadRun (Thread *th)


Constructor & Destructor Documentation

Thread::Thread Semaphore   sem = NULL,
int    pri = 10
[inline]
 

Definition at line 55 of file mythread.h.

References run_flag, SetPriority(), and SetSemaphore().

virtual Thread::~Thread   [inline, virtual]
 

Definition at line 35 of file mythread.h.

References Kill().


Member Function Documentation

void Thread::Exit   [inline]
 

Definition at line 78 of file mythread.h.

References mySleep(), and run_flag.

pthread_t Thread::ID   [inline]
 

Definition at line 36 of file mythread.h.

bool Thread::isExit   [inline]
 

Definition at line 73 of file mythread.h.

bool Thread::isRunning   [inline]
 

Definition at line 98 of file mythread.h.

References run_flag.

int Thread::Kill   [inline]
 

Definition at line 88 of file mythread.h.

References run_flag.

Referenced by ~Thread().

Semaphore * Thread::Lock   [inline]
 

Definition at line 68 of file mythread.h.

int Thread::Post   [inline]
 

Definition at line 108 of file mythread.h.

References Semaphore::Post().

virtual void Thread::RunMain void *    var = NULL [protected, pure virtual]
 

Referenced by Thread_ThreadRun().

void Thread::SetPriority int    pri [inline]
 

Definition at line 113 of file mythread.h.

Referenced by Thread().

void Thread::SetSemaphore Semaphore   sem [inline]
 

Definition at line 63 of file mythread.h.

Referenced by Thread().

int Thread::StartMain void *    var = NULL [inline]
 

Definition at line 49 of file mythread.h.

References Thread_ThreadRun, void_t, and vptr.

int Thread::Wait   [inline]
 

Definition at line 103 of file mythread.h.

References Semaphore::Wait().


Friends And Related Function Documentation

void Thread_ThreadRun Thread *    th [friend]
 

Definition at line 140 of file mythread.h.

Referenced by StartMain().


Member Data Documentation

bool Thread::run_flag [protected]
 

Definition at line 21 of file mythread.h.

Referenced by Exit(), isRunning(), Kill(), Thread(), and Thread_ThreadRun().

void* Thread::vptr
 

Definition at line 31 of file mythread.h.

Referenced by StartMain(), and Thread_ThreadRun().


The documentation for this class was generated from the following file:
Generated on Sun Jun 16 17:36:52 2002 for POSSE: Portable Object-oriented Scientific Steering Environment by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001