diff options
Diffstat (limited to 'sensors/1.0/default/service.cpp')
-rw-r--r-- | sensors/1.0/default/service.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sensors/1.0/default/service.cpp b/sensors/1.0/default/service.cpp index 5bcfe4b1f8..65f6d816a1 100644 --- a/sensors/1.0/default/service.cpp +++ b/sensors/1.0/default/service.cpp @@ -23,5 +23,9 @@ using android::hardware::sensors::V1_0::ISensors; using android::hardware::defaultPassthroughServiceImplementation; int main() { - return defaultPassthroughServiceImplementation<ISensors>(); + /* Sensors framework service needs at least two threads. + * One thread blocks on a "poll" + * The second thread is needed for all other HAL methods. + */ + return defaultPassthroughServiceImplementation<ISensors>(2); } |