From aaef9cb9d469ffb94ef0694c7b47e521887a6679 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 19 Jul 2013 06:31:28 +0000 Subject: Closed #1690: Assertion in timer in SIP transaction: Timer being rescheduled when already running git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4567 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/timer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pjlib/include') diff --git a/pjlib/include/pj/timer.h b/pjlib/include/pj/timer.h index 59149385..df6155a8 100644 --- a/pjlib/include/pj/timer.h +++ b/pjlib/include/pj/timer.h @@ -212,6 +212,15 @@ PJ_DECL(pj_timer_entry*) pj_timer_entry_init( pj_timer_entry *entry, void *user_data, pj_timer_heap_callback *cb ); +/** + * Queries whether a timer entry is currently running. + * + * @param entry The timer entry to query. + * + * @return PJ_TRUE if the timer is running. PJ_FALSE if not. + */ +PJ_DECL(pj_bool_t) pj_timer_entry_running( pj_timer_entry *entry ); + /** * Schedule a timer entry which will expire AFTER the specified delay. * -- cgit v1.2.3