104 static void* InternalThreadEntryFunc(
void* This);
107 pthread_mutex_t _mutex;
108 pthread_mutex_t _condMutex;
109 pthread_cond_t _cond;
114 bool shouldTerminate;
bool start()
Starts the internal thread method.
bool running()
Returns the state of the thread.
Definition: thread.h:75
void resume()
Resumes the thread from a pause.
int unlock()
Performs a mutual exclusion unlock. Will allow other threads that have been locked to resume...
virtual void exitAction()
Called once when thread is commanded to stop.
int lock()
Performs a mutual exclusion lock. Will halt if locked by another thread, and will resume when the oth...
Abstract class, handles a single thread. Features mutual exclusion and pause/resume.
Definition: thread.h:27
void stop()
Stops the internal thread method.
void WaitForInternalThreadToExit()
Will wait until the thread has finished.
virtual void doAction()
Continuously called until the thread is commanded to stop.
virtual void entryAction()
Called once at the beginning of the thread running.
void pause()
Performs a pause.
void checkSuspend()
Blocks the thread from a pause() call until resume() is called.