commit | f8ecbbb375c6a41895e0144d8d8cd42587891570 | [log] [tgz] |
---|---|---|
author | Calvin On <con@google.com> | Tue Apr 19 19:17:50 2016 -0700 |
committer | Andre Eisenbach <eisenbach@google.com> | Fri Apr 22 20:59:55 2016 +0000 |
tree | 2d7b0928f3b75b6b15bd60ca4a92831204c0cbdf | |
parent | 2fc493d0ea2b504df25d783a488dfadfe301329e [diff] |
Synchronize access to ServiceDeclaration fields. ServiceDeclaration objects are accessed by both the binder thread (addService, addCharacteristic, etc) and the GattService callback thread (onServiceAdded, etc) and so must be made thread-safe. Bug: 28201656 Change-Id: Ic2e4b5c21dafceb62f33738b781f908f502f60b3