reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::WorkerThread Class Reference

#include <WorkerThread.hxx>

Inheritance diagram for resip::WorkerThread:
[legend]

Public Member Functions

 WorkerThread (Worker *impl, resip::TimeLimitFifo< resip::ApplicationMessage > &fifo, resip::SipStack *stack)
 
virtual ~WorkerThread ()
 
void thread ()
 
- Public Member Functions inherited from resip::ThreadIf
 ThreadIf ()
 
virtual ~ThreadIf ()
 
virtual void run ()
 
void join ()
 
void detach ()
 
virtual void shutdown ()
 
virtual bool waitForShutdown (int ms) const
 
bool isShutdown () const
 

Protected Attributes

Worker * mWorker
 
resip::TimeLimitFifo< resip::ApplicationMessage > & mFifo
 
resip::SipStack * mStack
 
- Protected Attributes inherited from resip::ThreadIf
std::shared_ptr< std::thread > mThreadObj
 
Id mId
 
bool mShutdown
 
Mutex mShutdownMutex
 
Condition mShutdownCondition
 

Additional Inherited Members

- Public Types inherited from resip::ThreadIf
typedef std::thread::id Id
 
typedef pthread_key_t TlsKey
 
typedef void TlsDestructor(void *)
 
- Static Public Member Functions inherited from resip::ThreadIf
static Id selfId ()
 
static int tlsKeyCreate (TlsKey &key, TlsDestructor *destructor)
 This function follows pthread_key_create() signature.
 
static int tlsKeyDelete (TlsKey key)
 This function follows pthread_key_delete() signature.
 
static int tlsSetValue (TlsKey key, const void *val)
 This function follows pthread_setspecific() signature.
 
static void * tlsGetValue (TlsKey key)
 This function follows pthread_getspecific() signature.
 

Detailed Description

Definition at line 13 of file WorkerThread.hxx.

Constructor & Destructor Documentation

◆ WorkerThread()

resip::WorkerThread::WorkerThread ( Worker *  impl,
resip::TimeLimitFifo< resip::ApplicationMessage > &  fifo,
resip::SipStack *  stack 
)

Definition at line 12 of file WorkerThread.cxx.

◆ ~WorkerThread()

resip::WorkerThread::~WorkerThread ( )
virtual

Definition at line 20 of file WorkerThread.cxx.

Member Function Documentation

◆ thread()

void resip::WorkerThread::thread ( )
virtual

Implements resip::ThreadIf.

Definition at line 28 of file WorkerThread.cxx.

Member Data Documentation

◆ mFifo

resip::TimeLimitFifo<resip::ApplicationMessage>& resip::WorkerThread::mFifo
protected

Definition at line 23 of file WorkerThread.hxx.

◆ mStack

resip::SipStack* resip::WorkerThread::mStack
protected

Definition at line 24 of file WorkerThread.hxx.

◆ mWorker

Worker* resip::WorkerThread::mWorker
protected

Definition at line 22 of file WorkerThread.hxx.


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