Hello,

with
 b7ba69c moved app timers into core, using wheeltimer for that purpose
ff, we've moved the application timers, which are also e.g. used for SIP Session Timers, from the session_timer module into the core, and used the wheeltimer implementation of the SIP stack for it.

While before, for the cases where the timer should be fired into the session, there was already the easy to use AmSession::setTimer(...)/AmSession::removeTimer(...)/AmSession::removeTimers() methods which handled the session_timer module stuff, for all other cases where timers should be used unrelated to a session, it's also very simple now:

 #include "AmAppTimer.h"
 ...

 AmAppTimer::instance()->setTimer(eventqueue_name, timer_id, timeout);

 AmAppTimer::instance()->removeTimer(eventqueue_name, timer_id);

 AmAppTimer::instance()->removeTimers(eventqueue_name);

This change maybe also shows how performance-nerdy we are - I will let Vlada post specific load test numbers, but I can already say that for the signaling only cases where timers are involved (e.g. using SBC with SST), we save up to a third in CPU :)

Best Regards
Stefan

--
Stefan Sayer
CEO (Geschäftsführer)

FRAFOS GmbH

email: [email protected]
mobile:+49 162 1366449
www.frafos.com

Prinzessinnenstr. 19/20 betahaus
10969 Berlin
Germany
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to