summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apimutex.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-27 14:46:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 10:14:42 +0200
commit03e8928753ef76cb747b965938092c59d6306060 (patch)
treeb97520d3bd562dc50a226b590d8626f2b4e85d19 /cpukit/score/src/apimutex.c
parentscore: Delete CORE_mutex_Control::holder_id (diff)
downloadrtems-03e8928753ef76cb747b965938092c59d6306060.tar.bz2
score: Delete CORE_mutex_Control::lock
The holder field is enough to determine if a mutex is locked or not. This leads also to better error status codes in case a rtems_semaphore_release() is done for a mutex without having the ownership.
Diffstat (limited to 'cpukit/score/src/apimutex.c')
-rw-r--r--cpukit/score/src/apimutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/apimutex.c b/cpukit/score/src/apimutex.c
index 7899934183..ec2fbdc3ec 100644
--- a/cpukit/score/src/apimutex.c
+++ b/cpukit/score/src/apimutex.c
@@ -61,7 +61,7 @@ void _API_Mutex_Allocate(
mutex = (API_Mutex_Control *)
_Objects_Allocate_unprotected( &_API_Mutex_Information );
- _CORE_mutex_Initialize( &mutex->Mutex, NULL, &attr, CORE_MUTEX_UNLOCKED );
+ _CORE_mutex_Initialize( &mutex->Mutex, NULL, &attr, false );
_Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 );