summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/timer_symbian.cpp
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2013-02-27 07:15:57 +0000
committerRiza Sulistyo <riza@teluu.com>2013-02-27 07:15:57 +0000
commita3bbd2d78cfde6c165335dd073ccbad952d6bdd7 (patch)
tree74758e85b2292c39c26bc344b9f26ab8948c22f0 /pjlib/src/pj/timer_symbian.cpp
parentb4ed8ad0508e549043bdf3fded9408fcf4d1a878 (diff)
Re #1616: symbian port of ioqueue & timer
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4374 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/timer_symbian.cpp')
-rw-r--r--pjlib/src/pj/timer_symbian.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/pjlib/src/pj/timer_symbian.cpp b/pjlib/src/pj/timer_symbian.cpp
index ca40a667..4b1d61ba 100644
--- a/pjlib/src/pj/timer_symbian.cpp
+++ b/pjlib/src/pj/timer_symbian.cpp
@@ -392,6 +392,24 @@ PJ_DEF(pj_status_t) pj_timer_heap_schedule( pj_timer_heap_t *ht,
return PJ_SUCCESS;
}
+PJ_DEF(pj_status_t) pj_timer_heap_schedule_w_grp_lock(pj_timer_heap_t *ht,
+ pj_timer_entry *entry,
+ const pj_time_val *delay,
+ int id_val,
+ pj_grp_lock_t *grp_lock)
+{
+ pj_status_t status;
+
+ PJ_UNUSED_ARG(grp_lock);
+
+ status = pj_timer_heap_schedule(ht, entry, delay);
+
+ if (status == PJ_SUCCESS)
+ entry->id = id_val;
+
+ return status;
+}
+
PJ_DEF(int) pj_timer_heap_cancel( pj_timer_heap_t *ht,
pj_timer_entry *entry)
{
@@ -411,6 +429,17 @@ PJ_DEF(int) pj_timer_heap_cancel( pj_timer_heap_t *ht,
}
}
+PJ_DEF(int) pj_timer_heap_cancel_if_active(pj_timer_heap_t *ht,
+ pj_timer_entry *entry,
+ int id_val)
+{
+ int count = pj_timer_heap_cancel(ht, entry);
+ if (count == 1)
+ entry->id = id_val;
+
+ return count;
+}
+
PJ_DEF(unsigned) pj_timer_heap_poll( pj_timer_heap_t *ht,
pj_time_val *next_delay )
{