|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <EventStackThread.hxx>
Public Member Functions | |
| EventStackSimpleMgr (const char *implName) | |
| ~EventStackSimpleMgr () | |
| void | setOptions (SipStackOptions &options) |
| SipStack & | createStack (SipStackOptions &options) |
| EventStackThread & | getThread () |
| void | release () |
Protected Attributes | |
| FdPollGrp * | mPollGrp |
| EventThreadInterruptor * | mIntr |
| EventStackThread * | mThread |
| SipStack * | mStack |
Helper class to properly manage event loop for simple applications.
To use:
{
EventStackSimpleMgr myMgr(implName);
SipStackOptions options;
options.something = something;
SipStack& myStack = myMgr.createStack(options);
do other init here (like start dum) myMgr.getThread.run(); loop doing stuff with myStack until app finished myMgr.getThread.shutdown(); myMgr.getThread.join(); }
There is nothing unique about this class; you can inline it all into your app if want.
Definition at line 109 of file EventStackThread.hxx.
| EventStackSimpleMgr::EventStackSimpleMgr | ( | const char * | implName | ) |
Definition at line 120 of file EventStackThread.cxx.
| EventStackSimpleMgr::~EventStackSimpleMgr | ( | ) |
Definition at line 128 of file EventStackThread.cxx.
| SipStack & EventStackSimpleMgr::createStack | ( | SipStackOptions & | options | ) |
Definition at line 142 of file EventStackThread.cxx.
|
inline |
Definition at line 132 of file EventStackThread.hxx.
| void EventStackSimpleMgr::release | ( | ) |
Definition at line 151 of file EventStackThread.cxx.
| void EventStackSimpleMgr::setOptions | ( | SipStackOptions & | options | ) |
Definition at line 134 of file EventStackThread.cxx.
|
protected |
Definition at line 142 of file EventStackThread.hxx.
|
protected |
Definition at line 141 of file EventStackThread.hxx.
|
protected |
Definition at line 144 of file EventStackThread.hxx.
|
protected |
Definition at line 143 of file EventStackThread.hxx.