On Wed, Jul 04, 2012 at 04:59:05PM +0200, Jorge jo...@jorgechamorro.com wrote:
if (!ev_async_pending(watcher)) ev_async_send(EV_DEFAULT_UC_ watcher);
that expands to:
if (!(+(watcher)-sent)) ev_async_send(ev_default_loop_uc_ (), watcher);
In all my background (p)threads...
Should I
On Sun, Jul 01, 2012 at 12:12:41PM +0800, debuguo waterawo...@gmail.com wrote:
hello everyone,
1.*about ev_async. *I use only one ev_async as the signal. when something
happens, call ev_async_send(loop, watcher). before the ev_async_send, I
add one ev_async_pending(watcher) to see the status
hello everyone,
1.*about ev_async. *I use only one ev_async as the signal. when something
happens, call ev_async_send(loop, watcher). before the ev_async_send, I
add one ev_async_pending(watcher) to see the status of the watcher.
ev_async_pending returns a non-zero value, which means the event has