OSDN Git Service

Keep track of remaining fd when devices are removed
authorJens Gulin <jens.gulin@sonyericsson.com>
Tue, 22 Jun 2010 20:21:57 +0000 (22:21 +0200)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Mon, 28 Jun 2010 09:36:14 +0000 (11:36 +0200)
commitaf997c49621558dc697247040b47c3bc10ca7094
treeb9783a473e3dccf40f3e2fcb2ac2e0bb11f6adbb
parentb38d6045c83a14e1451c486133f78b9c13355a18
Keep track of remaining fd when devices are removed

Sometimes the wrong fd was accessed when the device was addressed
by device id.

The earlier implementation assumed that two arrays were in sync
but one of them was compacted when devices were removed. Instead
of that dependency the device now keeps track of it's file descriptor.

Change-Id: I2b8a793d76b89ab464ae830482b309fe86031671
include/ui/EventHub.h
libs/ui/EventHub.cpp