From d749012c94efaf397371b2294618465ec00fea08 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 25 Jun 2009 13:18:36 +0000 Subject: Ticket #900: pjlib-test failed on timer heap test on Symbian S60 3rd Edition MR - backported changes in #893 git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2817 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/timer.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pjlib/src/pjlib-test') 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; -- cgit v1.2.3