|
reSIProcate/stack
9694
|
#include <TimerQueue.hxx>


Public Member Functions | |
| TuSelectorTimerQueue (TuSelector &sel) | |
| UInt64 | add (unsigned int timeMs, Message *payload) |
| virtual void | processTimer (const TimerWithPayload &timer) |
Private Attributes | |
| TuSelector & | mFifoSelector |
Definition at line 188 of file TimerQueue.hxx.
| TuSelectorTimerQueue::TuSelectorTimerQueue | ( | TuSelector & | sel | ) |
Definition at line 90 of file TimerQueue.cxx.
: mFifoSelector(sel) {}
Definition at line 94 of file TimerQueue.cxx.
References resip::Message::brief(), DebugLog, and resip::TimerQueue< TimerWithPayload >::mTimers.
Referenced by resip::SipStack::postMS().
{
assert(payload);
DebugLog(<< "Adding application timer: " << payload->brief() << " ms=" << timeMs);
mTimers.push(TimerWithPayload(timeMs,payload));
return mTimers.top().getWhen();
}

| void TuSelectorTimerQueue::processTimer | ( | const TimerWithPayload & | timer | ) | [virtual] |
Implements resip::TimerQueue< TimerWithPayload >.
Definition at line 103 of file TimerQueue.cxx.
References resip::TuSelector::add(), resip::TimerWithPayload::getMessage(), and mFifoSelector.
{
mFifoSelector.add(timer.getMessage(),
TimeLimitFifo<Message>::InternalElement);
}

Definition at line 195 of file TimerQueue.hxx.
Referenced by processTimer().
1.7.5.1