summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2023-06-16 10:03:16 +0200
committer Vladimir Komsiyski <vladokom@google.com> 2023-08-02 19:23:46 +0200
commit60ed836681de81911b702390c7e6d1929aab5fe8 (patch)
treeec9bdcc832c9d5f7b0e5920ae6a30fddb99444a0 /libs/ultrahdr/jpegencoderhelper.cpp
parent8fa4561dda2d18fb7646d03b01c43fa74a0df28d (diff)
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
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions