InspIRCd
3.0
|
#include <threadengine.h>
Public Member Functions | |
Thread () | |
virtual void | Run ()=0 |
virtual void | SetExitFlag () |
void | join () |
Protected Member Functions | |
bool | GetExitFlag () |
Friends | |
class | ThreadEngine |
Derive from this class to implement your own threaded sections of code. Be sure to keep your code thread-safe and not prone to deadlocks and race conditions if you MUST use threading!
|
inline |
Set Creator to NULL at this point
|
inlineprotected |
Get thread's current exit status. (are we being asked to exit?)
void Thread::join | ( | ) |
Join the thread (calls SetExitFlag and waits for exit)
|
pure virtual |
Override this method to put your actual threaded code here.
Implemented in ConfigReaderThread.
|
virtual |
Signal the thread to exit gracefully.
Reimplemented in SocketThread, and QueuedThread.
|
friend |
ThreadEngine manages Thread::state