diff options
author | jackqdyulei <jackqdyulei@google.com> | 2019-02-13 13:17:38 -0800 |
---|---|---|
committer | jackqdyulei <jackqdyulei@google.com> | 2019-02-14 19:18:52 -0800 |
commit | 77535ce22a71b04fd45f526e8c03976e42761ec2 (patch) | |
tree | 81bf715c819997efda6580eadf32e045ce9b1a96 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 989bb3714f7bf6c31c1f13d480b537e485509fb4 (diff) |
Fix deadlock in LocalBluetoothManager
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.onUuidChange()->Lock
deviceManager->Device.refresh()->Device.dispatchCallback()-> try lock
callback
This CL remove sychnorized method in DeviceManager to unblock this
deadlock. Since UuidChange can only happen in bg thread, we don't need
this extra lock in DeviceManager.
Fixes: 112483982
Test: Manual
Change-Id: I1a8bb130cfff40358783f5f5da7e50e5f0a42e20
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions