On 09/26/2016 05:08 AM, Ji Wong Park wrote:
> Hi, i am back into this issue,
>
> i narrow it down to this code, want to replace WaitForMultipleObjects()
> with libuv event loop.
> Is this possible?
>
> HANDLE * hevent = &device->m_vstream_event; //read irp event from
> deviceiocontrol().
>
> while(true)
> {
> UINT32 ret = WaitForMultipleObjects(0x01, hevent, FALSE, 50); // i
> want replace this line with libuv!
> switch(ret)
> {
> //...
> }
> }
>
> Thank you.The short answer is no. The longer answer is it depends, but it would require cooperation from your 2 or more threads, which may end up not being worth it. You'd have to give it a try. Out of curiosity: since this is Windows only, AFAIS, why use libuv at all? Cheers, -- Saúl Ibarra Corretgé 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 https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
