When elapses <= now or elapses > now ? | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through March 23, 2004 ⬆ |
◄ ► |
Author | Message | |||
baumann Unregistered guest |
in the gatewap1.3.1 source code,timers.c. in fucntion void watch_timers(void *arg) , why is it elapses <= now , we dispatch the time-out event? which I thought it should be elapses > now. while (set->heap->len > 0 && set->heap->tab[0]->elapses <= now) { #ifdef WAP_TEST debug("WTP.TIMER",0,"WTP_TIMER Thread elapse a timer ! "); #endif elapse_timer(set->heap->tab[0]); heap_delete(set->heap, 0); } |