Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2010 19:37:44 +0200
From:      Peer Stritzinger <peerst@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: FreeBSD 8: libusb async mode + select(2) = nogo?
Message-ID:  <AANLkTinEzkF%2BbhAts1vGF0q9BHEpRXPYoFjyEmBM6aA1@mail.gmail.com>
In-Reply-To: <201007231921.45803.hselasky@c2i.net>
References:  <AANLkTikk7L-63c6wQb0YKoYovGKPcT932Lc9n6mRrmK9@mail.gmail.com> <201007231657.47682.hselasky@c2i.net> <AANLkTi=a__R7gNvE371zs1vNpMXLFXS-09joihFQc-_H@mail.gmail.com> <201007231921.45803.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
>
> Should work, but it might be that the second poll, when you try to process the
> events, don't work like expected. After any event on the two fd's you should
> call "libusb_handle_events_locked()" using a "tv = NULL".

I was calling libusb_handle_events_timeout(ctx, NULL), does this make
an difference (only running single threaded)

-- Peer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinEzkF%2BbhAts1vGF0q9BHEpRXPYoFjyEmBM6aA1>