summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutex.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-05 20:41:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-05 20:41:10 +0000
commit297be5c8f16a61c0a883bb4f0e33316b4df65bd4 (patch)
treecd67ef74426b5fb6e82c1dd1bfd9e648cbb05ce6 /cpukit/posix/src/mutex.c
parentadded printf of status when not successful (diff)
downloadrtems-297be5c8f16a61c0a883bb4f0e33316b4df65bd4.tar.bz2
pthread_mutex_setprioceiling: fixed bug where returned priority was
not converted from core priority to posix priority.
Diffstat (limited to 'cpukit/posix/src/mutex.c')
-rw-r--r--cpukit/posix/src/mutex.c4
1 files changed, 3 insertions, 1 deletions
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,