OSDN Git Service

If command_timed_out() is triggered don't get blocked by a deadlock
authorPavlin Radoslavov <pavlin@google.com>
Thu, 21 Jun 2018 01:28:33 +0000 (18:28 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 26 Jun 2018 20:37:46 +0000 (13:37 -0700)
commit2838b32ce424a6f8c8025175aaf9b6fd8cab313f
tree8b8362095b31c0d33a846265f28fb6c852f30cf8
parent430e59d86077cfbbe4421e395ca116768ea02afa
If command_timed_out() is triggered don't get blocked by a deadlock

If command_timed_out() is triggered and we cannot acquire the
commands_pending_response_mutex to print the debug info, then proceed
with the rest of the operations until the process aborts.

Similarly, if startup_timer_expired() is triggered and we are blocked
by a deadlock, just abort() because there is no way to recover.

Bug: 110441099
Test: Code compilation
Change-Id: I367332bbbd9c1d887bd2bc829b9f617114fc96fc
hci/src/hci_layer.cc