On Wednesday, December 9, 2015 at 11:38:52 PM UTC+8, 杜如意 wrote:
>
> Hi everybody,
>
> You know my program need other threads to process other works, it may more 
> than one,
>
> so sometimes i need to pass message to uv loop thread and hope got a 
> processing result,
>
> it's a easy way what use uv_async_send function to pass and invoke a 
> callback function to pass processing result,
>
> but  you also know it will lost passing message when invoke many times at 
> the same time.
>
> i also thought about use like local-tcp connecting or pipe to control uv 
> loop, but you know it looks like redundant and make the code more complex.
>
> Thanks in advance.
>
 
加个队列就好了,仅仅用uv_async_send来发通知,在回调的时候,去队列里拿消息. 

-- 
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/d/optout.

Reply via email to