When elapses <= now or elapses > now ... Search Search

Now SMS/MMS Gateway » MMS & SMS Technical Discussions (unsupported) » Archive through March 23, 2004 » When elapses <= now or elapses > now ? « Previous Next »

Author Message
baumann
Unregistered guest
Posted on Thursday, March 04, 2004 - 06:36 am:   

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);
}

Search Search Tree View Tree View   Home Home
Login Login / Register Topics Topics Search Last 1|3|7 Days   Previous Page Previous Next Next Page

© Copyright 2002-2008 by NowMobile.com Limited
Airport House, Purley Way, Croydon, London, CR0 0XZ, UK
UK Tel: +44-20-8286-8080 US Tel: +1.410.833.8711
email : nowsms@nowsms.com