From d271c3bb78f86dd9417a964b019b8e38911064fa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 31 Oct 2016 13:37:59 +0100 Subject: rtems: Add rtems_task_iterate() Update #2423. --- cpukit/score/include/rtems/score/threadimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 7b978ea477..51d9d473bf 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -83,6 +83,13 @@ extern Thread_Control *_Thread_Allocated_fp; RTEMS_CONTAINER_OF( node, Thread_Control, Resource_node ) #endif +typedef bool ( *Thread_Visitor )( Thread_Control *the_thread, void *arg ); + +void _Thread_Iterate( + Thread_Visitor visitor, + void *arg +); + void _Thread_Initialize_information( Thread_Information *information, Objects_APIs the_api, -- cgit v1.2.3