summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r--cpukit/score/include/rtems/score/thread.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 18d4774a5d..1005aa2eff 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -763,6 +763,21 @@ Thread _Thread_Idle_body(
);
#endif
+/*
+ * rtems_iterate_over_all_tasks
+ *
+ * DESCRIPTION:
+ *
+ * This routine iterates over all threads regardless of API and
+ * invokes the specified routine.
+ */
+
+typedef void (*rtems_per_thread_routine)( Thread_Control * );
+
+void rtems_iterate_over_all_threads(
+ rtems_per_thread_routine routine
+);
+
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/thread.inl>
#endif