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

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
ThreadDatastate
 

Member Function Documentation

void SocketThread::LockQueue ( )
inline

Lock queue.

void SocketThread::NotifyParent ( )

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

virtual void SocketThread::OnNotify ( )
pure virtual

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

virtual void SocketThread::SetExitFlag ( )
inlinevirtual

Signal the thread to exit gracefully.

Reimplemented from Thread.

void SocketThread::UnlockQueue ( )
inline

Unlock queue.

void SocketThread::UnlockQueueWakeup ( )
inline

Unlock queue and send wakeup to worker

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