Ignore:
Timestamp:
Feb 27, 2013 7:15:57 AM (11 years ago)
Author:
riza
Message:

Re #1616: symbian port of ioqueue & timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/timer_symbian.cpp

    r3553 r4374  
    393393} 
    394394 
     395PJ_DEF(pj_status_t) pj_timer_heap_schedule_w_grp_lock(pj_timer_heap_t *ht, 
     396                                                      pj_timer_entry *entry, 
     397                                                      const pj_time_val *delay, 
     398                                                      int id_val, 
     399                                                      pj_grp_lock_t *grp_lock) 
     400{ 
     401    pj_status_t status; 
     402             
     403    PJ_UNUSED_ARG(grp_lock); 
     404 
     405    status = pj_timer_heap_schedule(ht, entry, delay); 
     406     
     407    if (status == PJ_SUCCESS) 
     408        entry->id = id_val; 
     409     
     410    return status; 
     411} 
     412 
    395413PJ_DEF(int) pj_timer_heap_cancel( pj_timer_heap_t *ht, 
    396414                                  pj_timer_entry *entry) 
     
    412430} 
    413431 
     432PJ_DEF(int) pj_timer_heap_cancel_if_active(pj_timer_heap_t *ht, 
     433                                           pj_timer_entry *entry, 
     434                                           int id_val) 
     435{ 
     436    int count = pj_timer_heap_cancel(ht, entry); 
     437    if (count == 1) 
     438        entry->id = id_val; 
     439     
     440    return count; 
     441} 
     442 
    414443PJ_DEF(unsigned) pj_timer_heap_poll( pj_timer_heap_t *ht,  
    415444                                     pj_time_val *next_delay ) 
Note: See TracChangeset for help on using the changeset viewer.