Hi,

I use a same code than evdev.c to scan more than one device states. This 
code is embedded in threads, one thread by detected device. The trouble 
comes from the  "read" function call: it freeze the thread execution 
until the associated device state has changed (and doing so, others 
thread cannot run so we don't see other devices' activity).

So my question is: is there a mean to query if a /dev/input/eventX as 
something *new* to say before running the read function (sorry, this is 
surely a beginner'squestion) ? I know the problem is solved using some 
fork but threads are so nices...!


Regards,
Bod

-- 
Olivier Beaudoux
ESEO
4 rue Merlet de la Boulaye, BP 926
49009 Angers cedex 01
Tel:  +33 (2) 41-86-67-67 
      +33 (2) 41-86-67-05 (ligne directe)
Fax:  +33 (2) 41-87-99-27
Email: [EMAIL PROTECTED]


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to