diff options
| author | hughchen <hughchen@google.com> | 2019-11-07 16:16:46 +0800 |
|---|---|---|
| committer | hughchen <hughchen@google.com> | 2019-11-07 16:59:00 +0800 |
| commit | 73e5f1735f6cc77aa024c7f5e24e5b8f0f5bec13 (patch) | |
| tree | 69ae723adb432dedea4d20f2f9a75a4fb0e1cc98 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
| parent | ff671494e555fdc9836dcd8c84a7021d55335008 (diff) | |
Fix deadlock in CachedBluetoothDeviceManager
Following deadlock exist in previous code:
1. Main thread:
Device.refresh() -> Device.dispatchCallback() -> Lock callback
-> (handle callback in systemui) -> DeviceManager.getDevicesCopy()
-> try lock deviceManager
2. Bg thread:
DeviceManager.onActiveDeviceChanged() -> Lock deviceManager ->
Device.dispatchCallback() -> try lock callback
This CL remove sychnorized method in DeviceManager to unblock this
deadlock.
Fixes: 143373496
Test: Manual
Change-Id: Ib17d99a8d797e4e514e965541a04a520f89edad5
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions
