From: Michal Nazarewicz > On Tue, Feb 04 2014, Robert Baldyga wrote: > > This code is an example. Don't you think it would be better to keep it > > simple? > > PS. Of course another approach is to use two threads one for ep0 and the > other for transfers. Yet another, is to add AIO to ep0 in the kernel. I didn't look closely enough into the internals to see what this is actually doing. but when you refer to AIO are you referring to some feature of the usb stack that queues up requests and then indicates that they have finished, or the more general aio_read() functions? IIRC the latter use a thread to do a synchronous read since normal unix kernels are not designed to async io. The threads might be a limited kernel resource. David ��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥