vendredi 20 février 2015

Evdev avoid loop runs


I am handling input device events using libevdev. I did something like in the example of the main page. The problem which I see that, it consumes a lot of processors time. I reduced it with a proper sleep call, but still I am wondering, is there a way to read from the input device in a passive manner (like device will notify the waiting entity, or something like), not in such an aggressive one.




Aucun commentaire:

Enregistrer un commentaire