Correctly pass watcher to another loop

Vladimir Afinello vovan.af at gmail.com
Sun Jun 24 14:10:41 CEST 2012


Greetings,
thanks for the answer


> It's hard to believe that your program actually does what you describe,
> and here is why: the assertion is inside ev_io_stop, which is called by
> by start only when the watcher is still active. That contradicts the
> watcher.stop earlier.
>
>
One more addition.
I pass a group of watchers at a time (at least 5), so at this moment I'm in
a callback of a one of that watchers.
Should I wake the current thread loop to perform stop() on the other
watchers in a group?
I thought, the loop isn't in a wait state at that time since the callback
is executed.

Best regards, Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120624/40dabe68/attachment.html>


More information about the libev mailing list