Re: eventAdd with zero delay?

2013-01-30 Thread Rainer Weikusat
Amos Jeffries squ...@treenet.co.nz writes: On 30/01/2013 2:47 p.m., Rainer Weikusat wrote: What's the point of putting these onto the event queue? Wouldn't this be better done with something like this? The Call queue and the Events queue are drained individually in alternating fashion. The

Re: eventAdd with zero delay?

2013-01-30 Thread Henrik Nordström
ons 2013-01-30 klockan 12:21 + skrev Rainer Weikusat: Thank you. The reason I'm asking is mainly because 0-delay events are, according to the comment in schedule, supposed to be executed in FIFO order. Is this generally true for events, ie is the actual ordering criterion always a pair

eventAdd with zero delay?

2013-01-29 Thread Rainer Weikusat
What's the point of putting these onto the event queue? Wouldn't this be better done with something like this? NB: I would submit a proper patch for this if it was. - --- mad-squid-ev0/src/event.cc 8 Jan 2013 17:36:44 - 1.1.1.3 +++ mad-squid-ev0/src/event.cc 30

Re: eventAdd with zero delay?

2013-01-29 Thread Amos Jeffries
On 30/01/2013 2:47 p.m., Rainer Weikusat wrote: What's the point of putting these onto the event queue? Wouldn't this be better done with something like this? The Call queue and the Events queue are drained individually in alternating fashion. The first 0-delay event will not run until after