summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadchangepriority.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-24 20:15:52 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-10-01 13:19:38 +0200
commit61ef22bbeb75d0c4447a6d3a794466a9ed74162a (patch)
tree1a4a566da207c113c0ce0e2394d226779ab4c0a5 /cpukit/score/src/threadchangepriority.c
parentscore: Avoid dead code in thread queue surrender (diff)
downloadrtems-61ef22bbeb75d0c4447a6d3a794466a9ed74162a.tar.bz2
score: Add Thread_queue_Deadlock_status
Replace the boolen return value with the new enum Thread_queue_Deadlock_status. This improves the code readability. Improve documentation. Shorten function names.
Diffstat (limited to 'cpukit/score/src/threadchangepriority.c')
-rw-r--r--cpukit/score/src/threadchangepriority.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c
index 613d0cd7af..bd4fef279b 100644
--- a/cpukit/score/src/threadchangepriority.c
+++ b/cpukit/score/src/threadchangepriority.c
@@ -278,11 +278,11 @@ static void _Thread_Priority_apply(
if ( !_Priority_Actions_is_empty( &queue_context->Priority.Actions ) ) {
#if defined(RTEMS_SMP)
- _Thread_queue_Path_acquire_critical( queue, the_thread, queue_context );
+ (void) _Thread_queue_Path_acquire( queue, the_thread, queue_context );
#endif
_Thread_Priority_perform_actions( queue->owner, queue_context );
#if defined(RTEMS_SMP)
- _Thread_queue_Path_release_critical( queue_context );
+ _Thread_queue_Path_release( queue_context );
#endif
}
}