summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/iterateoverthreads.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 22:13:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 22:13:08 +0000
commit63f786e7c8ed2e34a4ae21f852d1e12e1e4d01d7 (patch)
treefd2219bf85cc6d7800e3a84cc7cca67586298967 /cpukit/score/src/iterateoverthreads.c
parent2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-63f786e7c8ed2e34a4ae21f852d1e12e1e4d01d7.tar.bz2
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* itron/src/itrontime.c: Fix typo. * score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro. * score/src/iterateoverthreads.c: Safely take NULL as argument. * score/src/threaddispatch.c: Formatting.
Diffstat (limited to 'cpukit/score/src/iterateoverthreads.c')
-rw-r--r--cpukit/score/src/iterateoverthreads.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c
index 3841a45dfd..398a1a1f59 100644
--- a/cpukit/score/src/iterateoverthreads.c
+++ b/cpukit/score/src/iterateoverthreads.c
@@ -29,6 +29,9 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
Thread_Control *the_thread;
Objects_Information *information;
+ if ( !routine )
+ return;
+
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {