OSDN Git Service

DO NOT MERGE: osi: Offload mutex pointer to local scope
authorMartin Brabham <optedoblivion@google.com>
Thu, 4 Apr 2019 21:57:41 +0000 (14:57 -0700)
committerMartin Brabham <optedoblivion@google.com>
Wed, 17 Apr 2019 21:20:55 +0000 (21:20 +0000)
commit15529d316435ae977d3d578faa382bc1af89e787
tree91bf6f73ce82c4ffcf94366b01c992352f5e76e3
parent076f33f677d444d8ab7d06c06e50c26c74ddecb6
DO NOT MERGE: osi: Offload mutex pointer to local scope

Create a shared_ptr for the callback_mutex in the alarm struct.
When performing the callback, make a local shared_ptr reference.
lock_guard on the local shared_ptr reference.

Bug: 117997080
Test: atest net_test_bluetooth
Change-Id: Iab800f720f4ccc4735e4d494e0d458eb97b40a4a
osi/src/alarm.cc
osi/test/alarm_test.cc