On Thu, Nov 08, 2007 at 03:03:40PM -0500, Nick Mathewson <[EMAIL PROTECTED]>
wrote:
> - You probably want event.h to include <event_compat.h> inside angle
> brackets, not inside quotes.
Its not in fact a problem with embedding as EV_STANDALONE prevents it from
being included anyways (so its just a "well spotted" :). It is a problem
with ev.h, though.
> - There's no event_active compatibility function defined. I looked
Its there now (I updated the tarball), the libev equivalent is
ev_feed_event. I don't really feel well about exposing it, though, without
actually having a use case that isn't served better by simply calling the
callback immediatelly.
Internally, it queues the event into the pending list by separating on the
three principal signal sources (EV_TIMEOUT or EV_READ/WRITE or EV_SIGNAL),
but that could likely be improved.
(Incidentally, ncalls is also being ignored this way, but as others found
it, its not a very useful feature of libevent. I atcually wanted to
provide something like this for repeating timers, as I found that event
loops either do the wrong thing (call hard-realtime-scheduled timers in a
loop for each skipped tick) or do the wrong thing (not telling the app how
many ticks were being skipped), but none of the timer types in libev have
a sensible definition for it).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
Libevent-users mailing list
[email protected]
http://monkeymail.org/mailman/listinfo/libevent-users