mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
pthread_mutex_setprioceiling: fixed bug where returned priority was
not converted from core priority to posix priority.
This commit is contained in:
@@ -635,7 +635,9 @@ int pthread_mutex_setprioceiling(
|
|||||||
/* XXX It feels questionable to set the ceiling on a remote mutex. */
|
/* XXX It feels questionable to set the ceiling on a remote mutex. */
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
case OBJECTS_LOCAL:
|
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;
|
the_mutex->Mutex.Attributes.priority_ceiling = the_priority;
|
||||||
_CORE_mutex_Surrender(
|
_CORE_mutex_Surrender(
|
||||||
&the_mutex->Mutex,
|
&the_mutex->Mutex,
|
||||||
|
|||||||
@@ -635,7 +635,9 @@ int pthread_mutex_setprioceiling(
|
|||||||
/* XXX It feels questionable to set the ceiling on a remote mutex. */
|
/* XXX It feels questionable to set the ceiling on a remote mutex. */
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
case OBJECTS_LOCAL:
|
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;
|
the_mutex->Mutex.Attributes.priority_ceiling = the_priority;
|
||||||
_CORE_mutex_Surrender(
|
_CORE_mutex_Surrender(
|
||||||
&the_mutex->Mutex,
|
&the_mutex->Mutex,
|
||||||
|
|||||||
Reference in New Issue
Block a user