On Fri, Apr 12, 2013 at 7:27 AM, Pete Batard <p...@akeo.ie> wrote:
> If that's the case, then you may want to check 3 years of libusb mailing
> list archives as well as one year of libusbx, because this topic has
> probably been discussed about once every 3 months on each list.
>
> I think the plan on which we more or less agreed for libusbx was that we
> would wait until _AFTER_ we had an initial hotplug implementation for
> all of Linux, OS X and Windows, to look into improved event handling.
>
> The reason is it'd be nice if the hotplug event handling could fit with
> the transfer event handling, but until we see clearer in terms of
> hotplug, whatever we _think_ we need in terms of event handling may end
> up being way off mark.
>
> Also see the current v2.3 libusbx milestone:
> https://github.com/libusbx/libusbx/issues/milestones
>
> IMO this is still way off on the horizon, and isn't something we should
> be looking at right now, especially not in the 1.x branch.

I agree. And hotplug seems to be the top feature request right now.

>> I see two possible ways of approaching the problem:
>>
>> 1) Add a new type, libusb_event_handle, which either maps to an FD or a
>> HANDLE, as appropriate on each platform. I've attached a first attempt
>> at the API changes in new_event_api.diff. It is a new API but is very
>> similar to the pre-existing poll api.
>>
>> 2) Add the ability to start and stop async event processing threads
>> which are internal to libusb. I've attached a first attempt at the API
>> changes in async_thread_api.diff.
>
> Have a look at the libusb archives, with some of the conversations
> involving Michael Plante, Orin Eman and others on the subject.

For example, one of the thread is like this.
http://marc.info/?t=130832326400001&r=1&w=2


-- 
Xiaofan

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to