[PATCH 07/10] score: Add _Thread_queue_Flush_default_filter()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 21 07:20:11 UTC 2016
---
cpukit/score/include/rtems/score/threadqimpl.h | 15 +++++++++++++++
cpukit/score/src/threadqflush.c | 11 +++++++++++
2 files changed, 26 insertions(+)
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index 68ce109..a31b4c3 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -623,6 +623,21 @@ typedef Thread_Control *( *Thread_queue_Flush_filter )(
ISR_lock_Context *lock_context
);
+/**
+ * @brief Default thread queue flush filter function.
+ *
+ * @param the_thread The thread to extract.
+ * @param queue Unused.
+ * @param lock_context Unused.
+ *
+ * @retval the_thread Extract this thread.
+ */
+Thread_Control *_Thread_queue_Flush_default_filter(
+ Thread_Control *the_thread,
+ Thread_queue_Queue *queue,
+ ISR_lock_Context *lock_context
+);
+
size_t _Thread_queue_Do_flush_critical(
Thread_queue_Queue *queue,
const Thread_queue_Operations *operations,
diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c
index 0ce639e..9e54e1f 100644
--- a/cpukit/score/src/threadqflush.c
+++ b/cpukit/score/src/threadqflush.c
@@ -20,6 +20,17 @@
#include <rtems/score/threadimpl.h>
+Thread_Control *_Thread_queue_Flush_default_filter(
+ Thread_Control *the_thread,
+ Thread_queue_Queue *queue,
+ ISR_lock_Context *lock_context
+)
+{
+ (void) queue;
+ (void) lock_context;
+ return the_thread;
+}
+
size_t _Thread_queue_Do_flush_critical(
Thread_queue_Queue *queue,
const Thread_queue_Operations *operations,
--
1.8.4.5
More information about the devel
mailing list