exposing activecnt
Alejandro Mery
amery at geeks.cl
Wed Nov 24 15:58:02 CET 2010
On Wed, Nov 24, 2010 at 14:23, Zsbán Ambrus <ambrus at math.bme.hu> wrote:
> On Wed, Nov 24, 2010 at 1:34 PM, Marc Lehmann <schmorp at schmorp.de> wrote:
>> The reason I believe that you don't need it is that ev_run already tells
>> you that the count is 0 _by the act of returning_.
>
> That much works. But now suppose Ryan's program calls some finalizer,
> and possibly wants to know whether there are active watchers after
> that. He can recall ev_run, but does ev have a way of telling you
> whether it's returned immediately because there are no watchers?
it smells like a return value for ev_run(), no?
Regards,
Alejandro Mery
More information about the libev
mailing list