From 297be5c8f16a61c0a883bb4f0e33316b4df65bd4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 5 Sep 1996 20:41:10 +0000 Subject: pthread_mutex_setprioceiling: fixed bug where returned priority was not converted from core priority to posix priority. --- cpukit/posix/src/mutex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/mutex.c') diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index eaa946fcfd..037791a252 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -635,7 +635,9 @@ int pthread_mutex_setprioceiling( /* XXX It feels questionable to set the ceiling on a remote mutex. */ return EINVAL; case OBJECTS_LOCAL: - *old_ceiling = the_mutex->Mutex.Attributes.priority_ceiling; + *old_ceiling = _POSIX_Priority_From_core( + the_mutex->Mutex.Attributes.priority_ceiling + ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; _CORE_mutex_Surrender( &the_mutex->Mutex, -- cgit v1.2.3