24 Jun 2012 15:14
Re: Correctly pass watcher to another loop
Vladimir Afinello <vovan.af <at> gmail.com>
2012-06-24 13:14:41 GMT
2012-06-24 13:14:41 GMT
> Should I wake the current thread loop to perform stop() on the otherI am not sure what that means, but again, if the watchers are stopped,
> watchers in a group?
then the loop will no longer access them.
I mean, when I receive some data from one client in it's watcher receive callback - I need to pass this watcher and 5 other watchers from this thread/loop to another.
And I perform stop() on all of them being in that receive callback function. So, does these 5+1 stop()'s affect the thread loop immediatelly? If not - I have no idea why these watchers remain active when I start them in another thread.
Best regards, Vladimir
_______________________________________________ libev mailing list libev <at> lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
RSS Feed