diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-31 13:37:59 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 08:46:47 +0100 |
commit | d271c3bb78f86dd9417a964b019b8e38911064fa (patch) | |
tree | 3c36b87c580464cc7f1e5aec89e1137a68759da3 /cpukit/libcsupport/src/sync.c | |
parent | posix: Fix timer interval (diff) | |
download | rtems-d271c3bb78f86dd9417a964b019b8e38911064fa.tar.bz2 |
rtems: Add rtems_task_iterate()
Update #2423.
Diffstat (limited to 'cpukit/libcsupport/src/sync.c')
-rw-r--r-- | cpukit/libcsupport/src/sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c index 214e42c631..1786b59cb0 100644 --- a/cpukit/libcsupport/src/sync.c +++ b/cpukit/libcsupport/src/sync.c @@ -47,7 +47,7 @@ static void sync_wrapper(FILE *f) } /* iterate over all FILE *'s for this thread */ -static void sync_per_thread(Thread_Control *t) +static bool sync_per_thread(Thread_Control *t, void *arg) { struct _reent *current_reent; struct _reent *this_reent; @@ -64,6 +64,8 @@ static void sync_per_thread(Thread_Control *t) _fwalk (t->libc_reent, sync_wrapper); executing->libc_reent = current_reent; } + + return false; } /* @@ -95,5 +97,5 @@ void sync(void) /* * Now walk all the per-thread reentrancy structures. */ - rtems_iterate_over_all_threads(sync_per_thread); + rtems_task_iterate(sync_per_thread, NULL); } |