summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-02 14:04:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-19 12:00:47 +0200
commitb76dd97990844ad0a0ff6cefadd433b681805a35 (patch)
tree856307e46bb7eef1199ed9c69308b723b6e1758d /cpukit/score/include
parentscore: Delete _CORE_semaphore_Seize() (diff)
downloadrtems-b76dd97990844ad0a0ff6cefadd433b681805a35.tar.bz2
score: Inline _CORE_semaphore_Flush()
Diffstat (limited to 'cpukit/score/include')
-rw-r--r--cpukit/score/include/rtems/score/coresemimpl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h
index 7e967ed488..dcea1a3737 100644
--- a/cpukit/score/include/rtems/score/coresemimpl.h
+++ b/cpukit/score/include/rtems/score/coresemimpl.h
@@ -140,11 +140,18 @@ CORE_semaphore_Status _CORE_semaphore_Surrender(
* thread unblocked is remote
* @param[in] status is the status to be returned to the unblocked thread
*/
-void _CORE_semaphore_Flush(
+RTEMS_INLINE_ROUTINE void _CORE_semaphore_Flush(
CORE_semaphore_Control *the_semaphore,
Thread_queue_Flush_callout remote_extract_callout,
uint32_t status
-);
+)
+{
+ _Thread_queue_Flush(
+ &the_semaphore->Wait_queue,
+ remote_extract_callout,
+ status
+ );
+}
/**
* This function returns true if the priority attribute is