From 03e8928753ef76cb747b965938092c59d6306060 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Mar 2014 14:46:31 +0100 Subject: 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. --- cpukit/posix/src/mutexinit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c index 73d3101b28..fdaa6090ee 100644 --- a/cpukit/posix/src/mutexinit.c +++ b/cpukit/posix/src/mutexinit.c @@ -172,12 +172,7 @@ int pthread_mutex_init( /* * Must be initialized to unlocked. */ - _CORE_mutex_Initialize( - &the_mutex->Mutex, - NULL, - the_mutex_attr, - CORE_MUTEX_UNLOCKED - ); + _CORE_mutex_Initialize( &the_mutex->Mutex, NULL, the_mutex_attr, false ); _Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 ); -- cgit v1.2.3