InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Protected Member Functions | List of all members
QueuedThread Class Reference
Inheritance diagram for QueuedThread:
Thread

Public Member Functions

void LockQueue ()
 
void UnlockQueue ()
 
void UnlockQueueWakeup ()
 
virtual void SetExitFlag ()
 
- Public Member Functions inherited from Thread
 Thread ()
 
virtual ~Thread ()
 
virtual void Run ()=0
 
void join ()
 

Protected Member Functions

void WaitForQueue ()
 
- Protected Member Functions inherited from Thread
bool GetExitFlag ()
 

Additional Inherited Members

- Public Attributes inherited from Thread
ThreadDatastate
 

Member Function Documentation

void QueuedThread::LockQueue ( )
inline

Lock queue.

virtual void QueuedThread::SetExitFlag ( )
inlinevirtual

Signal the thread to exit gracefully.

Reimplemented from Thread.

void QueuedThread::UnlockQueue ( )
inline

Unlock queue.

void QueuedThread::UnlockQueueWakeup ( )
inline

Unlock queue and wake up worker

void QueuedThread::WaitForQueue ( )
inlineprotected

Waits for an enqueue operation to complete You MUST hold the queue lock when you call this. It will be unlocked while you wait, and will be relocked before the function returns


The documentation for this class was generated from the following file: