Hi Saul,

I couldn't understand why you have mentioned to call the idle callback 
inside async callback. Why can't we just call the async callback and 
consume the POSIX Message queue in it directly and do uv_write ?

On Tuesday, November 26, 2013 10:59:54 PM UTC+5:30, Saúl Ibarra Corretgé 
wrote:
>
> On 11/26/13 12:29 PM, Sarav Sandhu wrote: 
> > Ok, then what exactly is the solution to this problem. What I need is 
> > that there must be 1 uv_write() call corresponding to the data received 
> > in msgrcv() call. 
> > 
>
> You could put the data you want to write on a queue and use an async 
> handle which starts an idle handle in its callback, and in the idle 
> handle's callback you consume the queue and do the actual uv_write. 
>
> -- 
> Sa�l Ibarra Corretg� 
> http://bettercallsaghul.com 
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to