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

Thread Class Reference

#include <Thread.h>

Inheritance diagram for Thread::

PosixThread List of all members.

Public Methods

 Thread (Runnable *runnable)
 Thread (Runnable *runnable)
 ~Thread ()
int start ()
int join ()
int getId ()
 Thread (Runnable *runnable)
 ~Thread ()
int start ()
int join ()
int getId ()

Static Public Methods

int getSelfId ()
void sleep (long msec)
void exit (int exitCode)
int getSelfId ()
void sleep (long msec)
void exit (int exitCode)

Static Protected Methods

DWORD WINAPI entry (void *arg)
DWORD WINAPI entry (void *arg)

Protected Attributes

DWORD _tid
HANDLE _handle
Runnable_runnable
Runnable_runnable

Constructor & Destructor Documentation

Thread::Thread Runnable   runnable [inline]
 

Definition at line 11 of file Solaris/Thread.h.

Thread::Thread Runnable   runnable
 

Thread::~Thread  
 

Definition at line 9 of file WinCE/Thread.cpp.

References _handle.

Thread::Thread Runnable   runnable
 

Thread::~Thread  
 


Member Function Documentation

DWORD WINAPI Thread::entry void *    arg [static, protected]
 

DWORD WINAPI Thread::entry void *    arg [static, protected]
 

Definition at line 45 of file WinCE/Thread.cpp.

References Runnable::run().

Referenced by start().

void Thread::exit int    exitCode [static]
 

Reimplemented from PosixThread.

void Thread::exit int    exitCode [static]
 

Reimplemented from PosixThread.

Definition at line 39 of file WinCE/Thread.cpp.

int Thread::getId   [inline]
 

Reimplemented from PosixThread.

Definition at line 23 of file WinNT/Thread.h.

int Thread::getId   [inline]
 

Reimplemented from PosixThread.

Definition at line 23 of file WinCE/Thread.h.

int Thread::getSelfId   [inline, static]
 

Reimplemented from PosixThread.

Definition at line 24 of file WinNT/Thread.h.

int Thread::getSelfId   [inline, static]
 

Reimplemented from PosixThread.

Definition at line 24 of file WinCE/Thread.h.

int Thread::join  
 

Reimplemented from PosixThread.

int Thread::join  
 

Reimplemented from PosixThread.

Definition at line 24 of file WinCE/Thread.cpp.

References _handle.

void Thread::sleep long    msec [static]
 

Reimplemented from PosixThread.

void Thread::sleep long    msec [static]
 

Reimplemented from PosixThread.

Definition at line 33 of file WinCE/Thread.cpp.

int Thread::start  
 

Reimplemented from PosixThread.

int Thread::start  
 

Reimplemented from PosixThread.

Definition at line 15 of file WinCE/Thread.cpp.

References _handle, _runnable, _tid, and entry().


Member Data Documentation

HANDLE Thread::_handle [protected]
 

Definition at line 12 of file WinNT/Thread.h.

Referenced by join(), start(), and ~Thread().

Runnable* Thread::_runnable [protected]
 

Reimplemented from PosixThread.

Definition at line 13 of file WinNT/Thread.h.

Runnable* Thread::_runnable [protected]
 

Reimplemented from PosixThread.

Definition at line 13 of file WinCE/Thread.h.

Referenced by start().

DWORD Thread::_tid [protected]
 

Reimplemented from PosixThread.

Definition at line 11 of file WinNT/Thread.h.

Referenced by start().


The documentation for this class was generated from the following files:
Generated on Mon Oct 7 09:33:37 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001