diff options
| author | 2020-02-27 12:06:10 -0800 | |
|---|---|---|
| committer | 2020-02-27 12:24:41 -0800 | |
| commit | 349fd2d2761b541d83cda739c866a1af315b036f (patch) | |
| tree | 6729dd20b3551ee05c8b324578f2dab54b7e1642 /vulkan/libvulkan/api.cpp | |
| parent | 1c7bc86a9b1bdf16b240a96d083102127f036325 (diff) | |
[RenderEngine] Reorder when ImageManager thread starts
Previously the background thread for managing EglImages was intialized
as a member variable before the constructor completed running. In very
rare circumstances this can potentially stop the running thread if the
thread ran before mRunning was initialized. To be less error-prone,
require that ImageManger::initThread be explicitly called to guarantee
that class member variables are well-defined when the thread begins
executing.
In case the issue resurfaces after this change, added a debug log to add
context.
Bug: 146416748
Test: builds. There is no reliable repro, so this fix is speculative
Test: systrace to verify thread is running and configured correctly.
Change-Id: I141c86240b90c7f87c22b3768c2e188293987b76
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions