commit | 4208ea0d5fb7297f9cec44238e388ce536f36334 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Fri Jul 17 09:48:46 2020 -0700 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Fri Jul 17 21:26:24 2020 +0000 |
tree | 08a2308465e9be27479694476d1dbda8b1e6eb8d | |
parent | e5dd4048d262f49f3231d1a6b7cd7c128210b0b7 [diff] |
Camera: Fix race condition between initialize and statusCallback Camera status callback may be triggered during ProviderInfo::initialize(). Acquire mLock for the duration of initialize() to avoid the race. Bug: 159201665 Test: vendor testing, Camera CTS Change-Id: I0be55c6b72b63e86ce100dd8d46947d86c8c6c34