summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqops.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/threadqops.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/threadqops.c')
-rw-r--r--cpukit/score/src/threadqops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c
index 972af21265..ce3a8f6a73 100644
--- a/cpukit/score/src/threadqops.c
+++ b/cpukit/score/src/threadqops.c
@@ -1186,7 +1186,7 @@ static void _Thread_queue_Priority_inherit_extract(
* resolves the deadlock. Thread T1 and T2 can the complete their
* operations.
*/
- _Thread_queue_Path_acquire_critical( queue, the_thread, queue_context );
+ (void) _Thread_queue_Path_acquire( queue, the_thread, queue_context );
#endif
_Thread_queue_Queue_extract(
@@ -1199,7 +1199,7 @@ static void _Thread_queue_Priority_inherit_extract(
);
#if defined(RTEMS_SMP)
- _Thread_queue_Path_release_critical( queue_context );
+ _Thread_queue_Path_release( queue_context );
#endif
}