ReplicaNet and RNLobby
1
|
Public Member Functions | |
Worker () | |
virtual | ~Worker () |
int | ThreadEntry (void) |
void | ThreadExiting (const int returnCode) |
![]() | |
ThreadClass () | |
virtual | ~ThreadClass () |
void | Sleep (int milliseconds) |
![]() | |
MutexClass () | |
virtual | ~MutexClass () |
void | Lock (void) |
void | UnLock (void) |
![]() | |
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 | |
![]() | |
enum | { kNoOwnerThread = -1 } |
![]() | |
static int | CallThreadEntry (ThreadClass *thread_class) |
static int | GetCurrentProcessorNumber (void) |
static size_t | GetNumAllocated (void) |
static size_t | GetNumActive (void) |
![]() | |
void | DoQuitNow (const int returnCode) |
void | CheckQuit (void) |
![]() | |
static size_t | GetNumAllocated (void) |
Worker | ( | ) |
The ctor performs some basic initialisation
|
virtual |
The dtor makes sure worker finishes.
|
virtual |
The thread starts executing from here.
Implements ThreadClass.
|
virtual |
This is called just before the thread exits, from the context of the thread.
Reimplemented from ThreadClass.