diff options
author | 2021-06-14 13:45:29 +0100 | |
---|---|---|
committer | 2021-06-16 14:03:20 +0100 | |
commit | 7ea287a0484c4480150d5ef9791ae81e54d8e432 (patch) | |
tree | 8cca641905bf154223f98089a6622e45f21acc84 /libs/gui/SurfaceControl.cpp | |
parent | a4f6c1c0fb3f85004b3bf9f014ce61ac65d819ae (diff) |
Switch away from std::async for proximity-active callback.
By default, std::async() returns a future with the expectation that the
caller monitors it. By ignoring the future we forced the future's
destructor to run which waits on the thread by default (causing a
deadlock). Since we don't really want to monitor the future for our
purposes here anyway, we're switching to a detached thread with
this change.
Test: Verify that when sensor is enabled, there is an additional
refresh rate vote for the rate specified in config file.
Bug: 175793106
Change-Id: Icfc2fc7e8dc84c614a9a19d7f23c9ce6d55cc6f0
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions