On Sat, Sep 15, 2012 at 11:35 PM, John Chen <john...@gmail.com> wrote:

> Oops! I forgot attache the trace file, here it is.
>
>
> On Sat, Sep 15, 2012 at 9:31 PM, John Chen <john...@gmail.com> wrote:
>
>> Question: Does libusbx supports hotplug on Linux?? that's very import to
>> us. I dot not have to support hot plug in windows, but I do need to support
>> hot plug in Linux.
>>
>> I was not doing hot plug when I was running the test, the reason I got
>> Access Denied is because I am trying to support HotPlug, maybe there is a
>> better way to do it than what I am doing. Right now I need to find out
>> whether a new device has just been plugged, whether an existing device has
>> been unplugged, so I did the following:
>> 1) Caches a list of related device handle in the memory CACHEDLIST (when
>> the system started)
>> 2) Create a seperate thread, running the following logic every 5 seconds,
>> the logic is as following:
>>     a) Enumerate all related device in the system at the moment, Create a
>> NEWLIST in memory
>>
>
We're doing this in our product. We look at all the plugged in devices
every 1 second and compare to what it was before and determine what was
plugged in and what was removed.

David
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to