On Fri, Jun 03, 2011 at 10:56:42AM +0400, Alexey Borzenkov <[email protected]>
wrote:
> Yes, thank you. It works as expected. On the other hand since libev
> provides ev_sleep as part of its API I think the check of delay being
The solution currently adopted in CVS is to document this more clearly -
ev_sleep was documented to return early without telling the caller, so
this shouldn't be bad news.
Libev-internal uses will have to take this into account.
The alternative of making ev_sleep round up creates quite a lot of code
overhead and is of no use to libev itself (I actually tried :).
> too small (or using ceil instead of relying on default runtime
> settings) should go there. :)
Conversion to integer always truncates towards zero in C, btw., regardless
of rounding mode or runtime settings, and libev relies on correct
implementation of this in many places, so it bettrer be true :)
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [email protected]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev