summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/src/pjlib-test/timer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib/src/pjlib-test/timer.c b/pjlib/src/pjlib-test/timer.c
index d13e3303..1ee05db7 100644
--- a/pjlib/src/pjlib-test/timer.c
+++ b/pjlib/src/pjlib-test/timer.c
@@ -139,7 +139,16 @@ static int test_timer_heap(void)
pj_gettimeofday(&now);
pj_get_timestamp(&t1);
+#if defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0
+ /* On Symbian, we must use OS poll (Active Scheduler poll) since
+ * timer is implemented using Active Object.
+ */
+ rc = 0;
+ while (pj_symbianos_poll(-1, 0))
+ ++rc;
+#else
rc = pj_timer_heap_poll(timer, NULL);
+#endif
pj_get_timestamp(&t2);
if (rc > 0) {
done += rc;