From b10cca5480d3a5746c2f536382204f7879ef48eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Mar 2005 21:56:28 +0000 Subject: [PATCH] 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 --- src/kernel/libroot/posix/pthread/pthread_mutex.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/kernel/libroot/posix/pthread/pthread_mutex.c b/src/kernel/libroot/posix/pthread/pthread_mutex.c index a8bb3eabdd..2bc4391984 100644 --- a/src/kernel/libroot/posix/pthread/pthread_mutex.c +++ b/src/kernel/libroot/posix/pthread/pthread_mutex.c @@ -1,7 +1,7 @@ -/* -** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. -*/ +/* + * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include @@ -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; }