mutex_unlock() did not return anything when everything went well.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11663 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-03-10 21:56:28 +00:00
parent 1c7fbde145
commit b10cca5480
@@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
/*
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <pthread.h>
@@ -118,7 +118,9 @@ mutex_unlock(pthread_mutex *mutex)
}
if (!mutex->attr.process_shared || atomic_add(&mutex->count, -1) > 1)
release_sem(mutex->sem);
return release_sem(mutex->sem);
return B_OK;
}