InspIRCd  3.0
Public Member Functions | Protected Member Functions | List of all members
QueuedThread Class Reference
Inheritance diagram for QueuedThread:

Public Member Functions

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

Protected Member Functions

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

Member Function Documentation

◆ LockQueue()

void QueuedThread::LockQueue ( )

Lock queue.

◆ SetExitFlag()

void QueuedThread::SetExitFlag ( )

Signal the thread to exit gracefully.

Reimplemented from Thread.

◆ UnlockQueue()

void QueuedThread::UnlockQueue ( )

Unlock queue.

◆ UnlockQueueWakeup()

void QueuedThread::UnlockQueueWakeup ( )

Unlock queue and wake up worker

◆ WaitForQueue()

void QueuedThread::WaitForQueue ( )

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: