Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

RNReplicaNet::Thread Class Reference

#include <Thread.h>

Collaboration diagram for RNReplicaNet::Thread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Thread ()
virtual ~Thread ()
void Begin (ThreadClass *threaded_class)
void Terminate (void)
bool GetIsRunning (void) const

Static Public Member Functions

static int CallThreadEntry (ThreadClass *thread_class)

Detailed Description

This Thread class handles creating a class that can be automatically threaded. A threaded class inherits methods from ThreadClass.


Constructor & Destructor Documentation

RNReplicaNet::Thread::Thread  ) 
 

The ctor performs some basic initialisation

virtual RNReplicaNet::Thread::~Thread  )  [virtual]
 

The dtor makes sure everything is tidy


Member Function Documentation

void RNReplicaNet::Thread::Begin ThreadClass threaded_class  ) 
 

This begins the thread in the specified ThreadClass class. Execution begins from ThreadClass::ThreadEntry()

Parameters:
threaded_class the pointer to the class that inherits from ThreadClass

static int RNReplicaNet::Thread::CallThreadEntry ThreadClass thread_class  )  [static]
 

This is a static method where the class starts its thread from

Parameters:
thread_class the threaded class pointer

bool RNReplicaNet::Thread::GetIsRunning void   )  const
 

Gets the execution status of the thread

Returns:
return true if the thread is running

void RNReplicaNet::Thread::Terminate void   ) 
 

Terminates the thread of the class bound to this Thread. The caller must not be in the context of the running thread.


The documentation for this class was generated from the following file:
Generated on Sun Oct 30 01:12:32 2005 for Platform by  doxygen 1.4.1