InspIRCd  2.0
Public Member Functions | Protected Member Functions | List of all members
SocketThread Class Referenceabstract
Inheritance diagram for SocketThread:

Public Member Functions

void NotifyParent ()
void LockQueue ()
void UnlockQueue ()
void UnlockQueueWakeup ()
virtual void SetExitFlag ()
virtual void OnNotify ()=0
- 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

Member Function Documentation

◆ LockQueue()

void SocketThread::LockQueue ( )

Lock queue.

◆ NotifyParent()

void SocketThread::NotifyParent ( )

Notifies parent by making the SignalFD ready to read No requirements on locking

◆ OnNotify()

virtual void SocketThread::OnNotify ( )
pure virtual

Called in the context of the parent thread after a notification has passed through the socket

◆ SetExitFlag()

virtual void SocketThread::SetExitFlag ( )

Signal the thread to exit gracefully.

Reimplemented from Thread.

◆ UnlockQueue()

void SocketThread::UnlockQueue ( )

Unlock queue.

◆ UnlockQueueWakeup()

void SocketThread::UnlockQueueWakeup ( )

Unlock queue and send wakeup to worker

◆ WaitForQueue()

void SocketThread::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 files: