On Jun 28, 1:18 am, Ben Noordhuis wrote:
> >> No. What pattern do you use? Something like this?
>
> >> if (!ev_async_pending(w))
> >> ev_async_send(w);
>
> > Ben, I think this should just be the default behaviour of libuv.
>
> Agreed. Though I still would like to know if that's the actual pa
On Wed, Jun 27, 2012 at 11:11 PM, Bert Belder wrote:
> On Wednesday, June 27, 2012 2:59:36 PM UTC+2, Ben Noordhuis wrote:
>>
>> On Wed, Jun 27, 2012 at 12:02 PM, Jorge wrote:
>> > I use to check ev_async_pending(&watcher) before doing an
>> > ev_async_send(&watcher). Is there anything like ev_asy
On Wednesday, June 27, 2012 2:59:36 PM UTC+2, Ben Noordhuis wrote:
>
> On Wed, Jun 27, 2012 at 12:02 PM, Jorge wrote:
> > I use to check ev_async_pending(&watcher) before doing an
> ev_async_send(&watcher). Is there anything like ev_async_pending() in
> libuv?
>
> No. What pattern do you use?
On Wed, Jun 27, 2012 at 12:02 PM, Jorge wrote:
> I use to check ev_async_pending(&watcher) before doing an
> ev_async_send(&watcher). Is there anything like ev_async_pending() in libuv?
No. What pattern do you use? Something like this?
if (!ev_async_pending(w))
ev_async_send(w);
If yes,
On 25/06/2012, at 19:50, Jorge wrote:
> On 25/06/2012, at 19:11, Fedor Indutny wrote
>> On Tue, Jun 26, 2012 at 12:04 AM, Jorge wrote:
>>>
>>> What does replace
>>>
>>> ev_async_start(EV_DEFAULT_UC_ &thread->async_watcher);
>>>
>>> and
>>>
>>> ev_async_stop(EV_DEFAULT_UC_ &thread->async_watche