Changeset 2783 for pjproject/trunk


Ignore:
Timestamp:
Jun 22, 2009 7:33:40 PM (15 years ago)
Author:
nanang
Message:

Ticket #893: Fixed timer test for Symbian to use Active Scheduler poll, instead of timer poll.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/timer.c

    r2394 r2783  
    140140 
    141141            pj_get_timestamp(&t1); 
     142#if defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 
     143            /* On Symbian, we must use OS poll (Active Scheduler poll) since  
     144             * timer is implemented using Active Object. 
     145             */ 
     146            rc = 0; 
     147            while (pj_symbianos_poll(-1, 0)) 
     148                ++rc; 
     149#else 
    142150            rc = pj_timer_heap_poll(timer, NULL); 
     151#endif 
    143152            pj_get_timestamp(&t2); 
    144153            if (rc > 0) { 
Note: See TracChangeset for help on using the changeset viewer.