i have to porting it in linux platform.
our sdk works fine in windows platform, 
but this routine doesn't based IOCP.

best use case is to use boost asio or libuv 
which directly communicate with device driver.

On Tuesday, September 27, 2016 at 5:19:47 AM UTC+9, Saúl Ibarra Corretgé 
wrote:
>
> 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.

Reply via email to