exposing activecnt

Marc Lehmann schmorp at schmorp.de
Wed Nov 24 10:12:44 CET 2010

On Tue, Nov 23, 2010 at 02:07:39PM -0800, Ryan Dahl <ry at tinyclouds.org> wrote:
> I would like to have make some actions after ev_loop() drops out due
> to the ref count going to zero. These actions might setup new watchers
> or may not. Exposing activecnt will allow me to re-enter ev_loop if
> the reference count is increased.

I am really reluctant to expose this. Can you provide a use-case? I can see
the code, but what does it do that requires this weird construct?

Before I expose this internal value, I really need to understand what it is
needed for.

                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