OSDN Git Service

STPK-1429 Unblock poll loop when a sensor gets enabled
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 3 Apr 2014 11:59:15 +0000 (13:59 +0200)
committersuyyala <sridhar.uyyala@intel.com>
Mon, 28 Apr 2014 02:40:39 +0000 (19:40 -0700)
commit8e24984d61ba305a735102e552816e11962b8423
tree140b6ee9ee68c8dcd013b39df58c069f7a175ecb
parent18273fd39573e25cd08ef6b29de7ab4ed0036b24
STPK-1429 Unblock poll loop when a sensor gets enabled

This solves an issue where we could be blocked in our
event processing loop with an infinite timeout, and a
poll-mode sensor gets enabled. In that scenario no
reading associated to this sensor gets reported up,
because the poll timeout does not get re-evaluated.

Also interrupt poll on enabling as the timeout currently
being used may now be stale.

Issue STPK-1429

Change-Id: I7913463d8580862e16d67113d58a7596afdb7dae
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c