Changeset 193 for pjproject/trunk


Ignore:
Timestamp:
Feb 19, 2006 1:28:55 AM (19 years ago)
Author:
bennylp
Message:

Added assert in timer if entry is scheduled more than once

File:
1 edited

Legend:

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

    r114 r193  
    447447    PJ_ASSERT_RETURN(entry->cb != NULL, PJ_EINVAL); 
    448448 
     449    /* Prevent same entry from being scheduled more than once */ 
     450    PJ_ASSERT_RETURN(entry->_timer_id < 1, PJ_EINVALIDOP); 
     451 
    449452    pj_gettimeofday(&expires); 
    450453    PJ_TIME_VAL_ADD(expires, *delay); 
Note: See TracChangeset for help on using the changeset viewer.