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

RNReplicaNet::ThreadClass Class Reference

#include <ThreadClass.h>

Inheritance diagram for RNReplicaNet::ThreadClass:

Inheritance graph
[legend]
Collaboration diagram for RNReplicaNet::ThreadClass:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThreadClass ()
virtual ~ThreadClass ()
void Sleep (int milliseconds)

Protected Member Functions

void DoQuitNow (const int returnCode)

Friends

class Thread

Detailed Description

This is a class that the thread manager can thread with. Entry for a thread starts at ThreadEntry.


Constructor & Destructor Documentation

RNReplicaNet::ThreadClass::ThreadClass  ) 
 

The ctor performs some basic initialisation

virtual RNReplicaNet::ThreadClass::~ThreadClass  )  [virtual]
 

The dtor makes sure everything is tidy


Member Function Documentation

void RNReplicaNet::ThreadClass::DoQuitNow const int  returnCode  )  [protected]
 

This exits the thread and can only be used in the context of the thread.

Parameters:
returnCode The return code.

void RNReplicaNet::ThreadClass::Sleep int  milliseconds  ) 
 

Sleeps the thread for the class by the number of milliseconds supplied. This uses the CurrentThreadSleep() function. Internally this is a point where the thread can be cancelled. There must not be any mutex object with a current lock when Sleep() is called otherwise a deadlock situation may develop.

Parameters:
milliseconds the sleep time in milliseconds


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