diff options
author | Aravind Akella <aakella@google.com> | 2014-09-03 15:48:05 -0700 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2014-09-03 18:24:05 -0700 |
commit | 9e3adfcebf28c5c76085108dffe98c74df56857d (patch) | |
tree | 18d56b979a4d8b0c3a6f5222daf3caf50761e434 /include/gui | |
parent | bcbf97ef8fb6eaf527014ed9e7d979ad4fe9fdd2 (diff) | |
download | frameworks_native-9e3adfcebf28c5c76085108dffe98c74df56857d.zip frameworks_native-9e3adfcebf28c5c76085108dffe98c74df56857d.tar.gz frameworks_native-9e3adfcebf28c5c76085108dffe98c74df56857d.tar.bz2 |
SensorService flush fixes.
i) Fix a possible race condition when adding a pending flush connection
to mActiveSensors data structure.
ii) Invalidate flush_complete_events as soon as they are consumed by a
connection so that they are not used by other connections which are
registered for the same sensor.
Change-Id: I1491bea8c2081c4aab1feacc60add13b7aa26bb7
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/SensorEventQueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gui/SensorEventQueue.h b/include/gui/SensorEventQueue.h index 019308d..5402f37 100644 --- a/include/gui/SensorEventQueue.h +++ b/include/gui/SensorEventQueue.h @@ -27,7 +27,7 @@ #include <gui/BitTube.h> // ---------------------------------------------------------------------------- -#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1U << 31) +#define WAKE_UP_SENSOR_EVENT_NEEDS_ACK (1U << 30) struct ALooper; struct ASensorEvent; |