From af04a791738929c39106d0475bd71efcd6acd428 Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Mon, 12 Aug 1996 17:40:56 +0000 Subject: _POSIX_Condition_variables_Wait_support: added _POSIX_Mutex_From_core_mutex_status for the two calls to the mutex manager --- cpukit/posix/src/cond.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index 03f2b67577..da45d9e2cb 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -11,6 +11,7 @@ #include #include #include +#include /* * TEMPORARY @@ -378,8 +379,8 @@ int _POSIX_Condition_variables_Wait_support( return EINVAL; status = pthread_mutex_unlock( mutex ); - if ( !status ) - return status; + if ( status ) + return _POSIX_Mutex_From_core_mutex_status( status ); the_cond->Mutex = *mutex; @@ -390,8 +391,8 @@ int _POSIX_Condition_variables_Wait_support( _Thread_Enable_dispatch(); status = pthread_mutex_lock( mutex ); - if ( !status ) - return status; + if ( status ) + return _POSIX_Mutex_From_core_mutex_status( status ); return _Thread_Executing->Wait.return_code; } -- cgit v1.2.3