diff options
| author | Wei Wang <weiwa@google.com> | 2014-08-18 16:08:00 -0700 |
|---|---|---|
| committer | Wei Wang <weiwa@google.com> | 2014-08-19 10:46:52 -0700 |
| commit | b661bb79584f83ae95713e502fc14363c80c0278 (patch) | |
| tree | 5945e5a8ebeb428e6b484167aa5061844993185d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| parent | 3f05bf4d7838cb719e78f9d93b22d7ce777392c5 (diff) | |
Fix race condition for BluetoothLeScanner.
Root cause of the issue:
Client registeration was done on caller's thread, while
onClientRegistered was called from binder thread. There is a slight
chance that onClientRegistered was called before registerClient
returned, causing a premature notifyAll before wait was called.
By forcing acquiring the same lock now it's guaranteed wait would
happen before onClientRegistered callback was executed.
Bug: 16707401
Change-Id: Ic60adec475085741d14ecd2d2bb462246f88da58
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
