Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 60ed8366 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Process runtime sensor events in a separate thread.

SensorService::threadLoop blocks while polling from the device, which
causes the runtime sensor events to never be processed in case there
are no "real" sensor events.

Separating the threads that handle the "real" and the runtime sensor
events solves the issue - verified by adding a long sleep in poll()
and VirtualSensorTest still passes.

The new thread is only started when the the first runtime sensor is
registered.

Bug: 281452823
Bug: 288383960
Test: atest VirtualSensorTest
Test: atest cts/tests/sensor

Change-Id: I96bb217c72462d29c68c510bd7cea97ac925ccb2
parent 8fa4561d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment