Standalone mode and EV_USE_REALTIME

Marc Lehmann schmorp at
Fri Sep 9 10:45:37 CEST 2011

On Sun, Sep 04, 2011 at 05:49:25PM -0400, ghudson at MIT.EDU wrote:
> EV_USE_CLOCK_SYSCALL is guessed.  This results in a dependency on
> clock_gettime().

You mean when support for it is not detected?

> (On Solaris 10, this results in a dependency on librt unless
> EV_USE_REALTIME is overridden.)

Since EV_USE_CLOCK_SYSCALL defaults to off on solaris, EV_USE_REALTIME is
defined to be 1. This in line with documentation for EV_STANDALONE,
EV_USE_REALTIME and EV_USE_CLOCK_SYSCALL, so it seems it is intended.

EV_STANDALONE also isn't documented to somehow minimise os usage,
and clock_gettime is rather important for timekeeping purposes, so
should be provided if possible.

EV_STANDALONE is documented to not rely on autoconfig, but instead on a
manually provided configuration. It seems to me that if you want to avoid
using realtime calls you can just define EV_USE_REALTIME to 0 in your
custom config.

If this somehow doesn't work for you, then I'd be interested to hear why.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list