summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 20:04:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-08-14 20:04:18 +0000
commit17c6686753e583c8a8c37474beea6e67d9b5a43f (patch)
tree703c7f266181ac32c5a6fb370d5eaec4186d0056 /cpukit/score/include
parent2003-08-14 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-17c6686753e583c8a8c37474beea6e67d9b5a43f.tar.bz2
2003-08-14 Joel Sherrill <joel@OARcorp.com>
PR 408/filesystem * score/Makefile.am, score/include/rtems/score/thread.h: Added sync() service. As part of adding this service, the new RTEMS service rtems_iterate_over_all_threads() was also added. This new service makes it easier to iterate over all the tasks/threads in a system and perform an action on them. * score/src/iterateoverthreads.c: New file. * ChangeLog: Fixed screwup.
Diffstat (limited to 'cpukit/score/include')
-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