OSDN Git Service

Add missing clean_up step for the OSI module.
authorPavlin Radoslavov <pavlin@google.com>
Sat, 23 May 2015 02:47:49 +0000 (19:47 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 28 May 2015 16:34:32 +0000 (16:34 +0000)
commit0d6a501d0517c186f11cbee294ae2c509073de91
tree19a099f653663c7361da13c80520311d217396d9
parent0d45f25e4102b14d942efa530f0e6a1a6c19787a
Add missing clean_up step for the OSI module.

Now the OSI module's shut_down processing is split into "shut_down"
and "clean_up".

Previously, there was an ordering issue manipulating some of the
internal state during graceful shutdown/cleanup. Some of the modules
had two steps: shut_down, followed by clean_up, while other had only
shut_down step. This triggered the following assert in file alarm.c

    alarm_cancel: assertion "alarms != NULL" failed

Bug: 21406940
Change-Id: Iab1f033a69cbff646a6b0f346760ae82f8b00b8f
btcore/src/osi_module.c
btif/src/stack_manager.c
osi/include/alarm.h
osi/src/alarm.c
osi/test/AlarmTestHarness.cpp