summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-10 15:07:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-12 20:58:26 +0200
commita5aaf20a2d25846c2bfe78e286550fed38d2c111 (patch)
tree6918797e365abb7fba28ef3adc9ef2ed260bde02 /cpukit/include/rtems/posix
parentrtems: Fix rtems_partition_return_buffer() (diff)
downloadrtems-a5aaf20a2d25846c2bfe78e286550fed38d2c111.tar.bz2
score: Replace priority prepend it with an enum
Use the new Priority_Group_order enum instead of a boolean to indicated if a priority should be inserted as the first or last node into its priority group. This makes the code more expressive. It is also a bit more efficient since a branch in _Scheduler_Node_set_priority() is avoided and a simple bitwise or operation can be used.
Diffstat (limited to 'cpukit/include/rtems/posix')
-rw-r--r--cpukit/include/rtems/posix/muteximpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/posix/muteximpl.h b/cpukit/include/rtems/posix/muteximpl.h
index 435b43634d..5d20bc1ef6 100644
--- a/cpukit/include/rtems/posix/muteximpl.h
+++ b/cpukit/include/rtems/posix/muteximpl.h
@@ -273,7 +273,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Set_priority(
owner,
&the_mutex->Priority_ceiling,
priority_ceiling,
- false,
+ PRIORITY_GROUP_LAST,
queue_context
);
_Thread_Wait_release( owner, queue_context );