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

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

© Copyright 2002-2010 by NowMobile.com Limited
Bourne House, 475 Godstone Road, Whyteleafe, CR3 0BL, UK
UK Tel: +44.1883.621100
email : nowsms@nowsms.com


Still reading the fine print? Why not visit our friend SkippyTheLizard's Music Blog