OSDN Git Service

Work around race condition between thread shutdown and vendor lib shutdown.
authorSharvil Nanavati <sharvil@google.com>
Thu, 24 Jul 2014 16:07:36 +0000 (09:07 -0700)
committerSharvil Nanavati <sharvil@google.com>
Thu, 24 Jul 2014 20:09:46 +0000 (13:09 -0700)
commit7be309d0bd3296b37f2a16bf7cf8323f2658b3bd
tree060afdccac98de11cd17022bb41bcc5554e733fb
parente0cdd3399119823e2f1ec75161c1cf67829651bf
Work around race condition between thread shutdown and vendor lib shutdown.

This race condition occurs because of a structural bug - the userial
thread depends on the HCI thread and the HCI thread depends on the
userial thread but both are independently owned and torn down. This
change fixes a crash bug due to the race condition (NULL pointer
access in userial thread).

http://b/16483216

Change-Id: I91ea274856ac72e9d72b92f0dc5c94e53aaf22f4
hci/src/bt_hci_bdroid.c