[timers] - triggering at the same time
Marc Lehmann
schmorp at schmorp.de
Sun Dec 18 18:31:47 CET 2011
On Fri, Dec 16, 2011 at 07:15:57PM -0800, Neeraj Rai <rneeraj at yahoo.com> wrote:
> ok, the good news is that the cvs version, and probably 3.6 onward already
> call timers in strict ordering, and this is not a concidence.
ah, no, i was confused, timers that have the exact same expiry moment have
no inherent ordering indeed.
as such, the sorting method in a prepare watcher would need some
additional information, for example, a watcher could have a 32 or 64 bit
sequence number that the prepare watcher could sort for, and would need to
be added by the application.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list