|
reSIProcate/repro
9694
|
#include <WorkerThread.hxx>


Public Member Functions | |
| WorkerThread (Worker *impl, resip::TimeLimitFifo< resip::ApplicationMessage > &fifo, resip::SipStack *stack) | |
| virtual | ~WorkerThread () |
| void | thread () |
Protected Attributes | |
| Worker * | mWorker |
| resip::TimeLimitFifo < resip::ApplicationMessage > & | mFifo |
| resip::SipStack * | mStack |
Definition at line 17 of file WorkerThread.hxx.
| repro::WorkerThread::WorkerThread | ( | Worker * | impl, |
| resip::TimeLimitFifo< resip::ApplicationMessage > & | fifo, | ||
| resip::SipStack * | stack | ||
| ) |
Definition at line 12 of file WorkerThread.cxx.
| repro::WorkerThread::~WorkerThread | ( | ) | [virtual] |
Definition at line 20 of file WorkerThread.cxx.
| void repro::WorkerThread::thread | ( | ) | [virtual] |
Implements resip::ThreadIf.
Definition at line 28 of file WorkerThread.cxx.
{
resip::ApplicationMessage* msg;
bool queueToStack;
while(mWorker && !isShutdown())
{
if( (msg=mFifo.getNext(100)) != 0 )
{
queueToStack = mWorker->process(msg);
if(queueToStack && mStack)
{
// Post to stack instead of directly to TU, since stack does
// some safety checks to ensure the TU still exists before posting
mStack->post(std::auto_ptr<resip::ApplicationMessage>(msg));
}
else
{
//ErrLog(<<"Stack pointer not set!");
delete msg;
}
}
}
}
Definition at line 27 of file WorkerThread.hxx.
resip::SipStack* repro::WorkerThread::mStack [protected] |
Definition at line 28 of file WorkerThread.hxx.
Worker* repro::WorkerThread::mWorker [protected] |
Definition at line 26 of file WorkerThread.hxx.
1.7.5.1