On Fri, Mar 07, 2014 at 09:14:30PM +0100, Daniel Elstner wrote:
> 
> I made this assumption in lwla_receive_data (protocol.c):
> 
>       /* If no event flags are set the timeout must have expired. */
>       if (revents == 0 && devc->state == STATE_STATUS_WAIT) {
> 
> is that valid on Windows, too?

As far as I know it should be, but it could be worth checking by adding
some debug output as soon as lwla_receive_data() is called.

> The only other thing I can think of right now would be that I used the
> asynchronous API for both input and output.

I don't see why this should matter. Between the background thread
running libusb_wait_for_event(), the presence of a timeout, and your
handler running libusb_handle_events_timeout_completed(), I would have
thought everything should get pumped correctly whatever happens.


Martin

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to