could anyone tell me about how to exit the program using libev
debuguo
wateraworld at gmail.com
Thu Jun 28 12:35:42 CEST 2012
must I call ev_run() in one function, and call ev_break() in the same
funtion?
2012/6/28 Zsbán Ambrus <ambrus at math.bme.hu>
> On Thu, Jun 28, 2012 at 11:46 AM, Marc Lehmann <schmorp at schmorp.de> wrote:
> > On Thu, Jun 28, 2012 at 04:51:38PM +0800, debuguo <wateraworld at gmail.com>
> wrote:
> >> I have stop all the watchers in the loop, and called the ev_break() in
> one
> >> thread, and another thread(containing the ev_run) will still execute the
> >> ev_run and write callback.
> >
> > You cannot call ev_break from another thread - a loop is a shared
> resource,
> > and would need to be locked properly.
>
> Ah, correct. I didn't read the original question properly. Sorry.
>
> Ambrus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20120628/b79e5e75/attachment.html>
More information about the libev
mailing list