fixed destroying benaphores in uninit_accelerant
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5917 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -308,13 +308,18 @@ error0:
|
|||||||
void UNINIT_ACCELERANT(void)
|
void UNINIT_ACCELERANT(void)
|
||||||
{
|
{
|
||||||
if (accelerantIsClone)
|
if (accelerantIsClone)
|
||||||
|
{
|
||||||
LOG(4,("UNINIT_ACCELERANT: shutting down clone accelerant.\n"));
|
LOG(4,("UNINIT_ACCELERANT: shutting down clone accelerant.\n"));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
LOG(4,("UNINIT_ACCELERANT: shutting down primary accelerant.\n"));
|
LOG(4,("UNINIT_ACCELERANT: shutting down primary accelerant.\n"));
|
||||||
|
|
||||||
/*delete benaphore*/
|
/* delete benaphores ONLY if we are the primary accelerant */
|
||||||
DELETE_BEN(si->engine.lock);
|
DELETE_BEN(si->engine.lock);
|
||||||
DELETE_BEN(si->overlay.lock);
|
DELETE_BEN(si->overlay.lock);
|
||||||
|
}
|
||||||
|
|
||||||
/* free our mode list area */
|
/* free our mode list area */
|
||||||
delete_area(my_mode_list_area);
|
delete_area(my_mode_list_area);
|
||||||
/* paranoia */
|
/* paranoia */
|
||||||
|
|||||||
@@ -291,13 +291,18 @@ error0:
|
|||||||
void UNINIT_ACCELERANT(void)
|
void UNINIT_ACCELERANT(void)
|
||||||
{
|
{
|
||||||
if (accelerantIsClone)
|
if (accelerantIsClone)
|
||||||
|
{
|
||||||
LOG(4,("UNINIT_ACCELERANT: shutting down clone accelerant.\n"));
|
LOG(4,("UNINIT_ACCELERANT: shutting down clone accelerant.\n"));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
LOG(4,("UNINIT_ACCELERANT: shutting down primary accelerant.\n"));
|
LOG(4,("UNINIT_ACCELERANT: shutting down primary accelerant.\n"));
|
||||||
|
|
||||||
/*delete benaphore*/
|
/* delete benaphores ONLY if we are the primary accelerant */
|
||||||
DELETE_BEN(si->engine.lock);
|
DELETE_BEN(si->engine.lock);
|
||||||
DELETE_BEN(si->overlay.lock);
|
DELETE_BEN(si->overlay.lock);
|
||||||
|
}
|
||||||
|
|
||||||
/* free our mode list area */
|
/* free our mode list area */
|
||||||
delete_area(my_mode_list_area);
|
delete_area(my_mode_list_area);
|
||||||
/* paranoia */
|
/* paranoia */
|
||||||
|
|||||||
Reference in New Issue
Block a user