mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
enhance timers and make rtp use it that way
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2669 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -787,6 +787,20 @@ SWITCH_DECLARE(switch_status_t) switch_core_timer_init(switch_timer_t *timer, ch
|
||||
*/
|
||||
SWITCH_DECLARE(int) switch_core_timer_next(switch_timer_t *timer);
|
||||
|
||||
/*!
|
||||
\brief Step the timer one step
|
||||
\param timer the timer to wait on
|
||||
\return the newest sample count
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_timer_step(switch_timer_t *timer);
|
||||
|
||||
/*!
|
||||
\brief Check if the current step has been exceeded
|
||||
\param timer the timer to wait on
|
||||
\return the newest sample count
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_timer_check(switch_timer_t *timer);
|
||||
|
||||
/*!
|
||||
\brief Destroy an allocated timer
|
||||
\param timer timer to destroy
|
||||
|
||||
Reference in New Issue
Block a user