ReplicaNet and RNLobby  1
Public Member Functions | List of all members
Worker Class Reference
Inheritance diagram for Worker:
Inheritance graph
[legend]
Collaboration diagram for Worker:
Collaboration graph
[legend]

Public Member Functions

 Worker ()
 
virtual ~Worker ()
 
int ThreadEntry (void)
 
void ThreadExiting (const int returnCode)
 
- Public Member Functions inherited from ThreadClass
 ThreadClass ()
 
virtual ~ThreadClass ()
 
void Sleep (int milliseconds)
 
- Public Member Functions inherited from MutexClass
 MutexClass ()
 
virtual ~MutexClass ()
 
void Lock (void)
 
void UnLock (void)
 
- Public Member Functions inherited from Thread
 Thread ()
 
virtual ~Thread ()
 
void Begin (ThreadClass *threaded_class)
 
void Terminate (void)
 
bool GetTerminated (void)
 
bool GetEverTerminated (void)
 
bool GetIsRunning (void) const
 
void SetPreferredProcessor (int processor=kReplicaNetPreferredProcessorOSChoice)
 
int GetPreferredProcessor (void)
 

Additional Inherited Members

- Public Types inherited from MutexClass
enum  { kNoOwnerThread = -1 }
 
- Static Public Member Functions inherited from Thread
static int CallThreadEntry (ThreadClass *thread_class)
 
static int GetCurrentProcessorNumber (void)
 
static size_t GetNumAllocated (void)
 
static size_t GetNumActive (void)
 
- Protected Member Functions inherited from ThreadClass
void DoQuitNow (const int returnCode)
 
void CheckQuit (void)
 
- Static Protected Member Functions inherited from ThreadClass
static size_t GetNumAllocated (void)
 

Constructor & Destructor Documentation

Worker ( )

The ctor performs some basic initialisation

virtual ~Worker ( )
virtual

The dtor makes sure worker finishes.

Member Function Documentation

int ThreadEntry ( void  )
virtual

The thread starts executing from here.

Implements ThreadClass.

void ThreadExiting ( const int  returnCode)
virtual

This is called just before the thread exits, from the context of the thread.

Reimplemented from ThreadClass.