diff options
author | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2009-12-17 20:09:11 +0000 |
---|---|---|
committer | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2009-12-17 20:09:11 +0000 |
commit | c7ee08547586d127741ed426d0deac2d378ed9d8 (patch) | |
tree | 4e566d61e1469238ba5b19fc0bdbf6e6724db0d5 /led/ratemon_cond_server | |
parent | 2009-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-examples-c7ee08547586d127741ed426d0deac2d378ed9d8.tar.bz2 |
2009-12-17 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* delay/init.c, event_server/init.c, msg_server/init.c,
posix_cond_server/test.c, posix_delay_nanosleep/test.c,
posix_delay_sleep/test.c, posix_mutex_server/test.c, ratemon1/init.c,
ratemon2/init.c, ratemon_cond_server/test.c, sem_server/init.c,
timeout_event/init.c: Cleaned up the led examples to produce similiar
output.
* timer_server/.cvsignore: New file.
Diffstat (limited to 'led/ratemon_cond_server')
-rw-r--r-- | led/ratemon_cond_server/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/led/ratemon_cond_server/test.c b/led/ratemon_cond_server/test.c index a481847..df43368 100644 --- a/led/ratemon_cond_server/test.c +++ b/led/ratemon_cond_server/test.c @@ -28,13 +28,13 @@ void *POSIX_Init( if ( status ) fprintf( stderr, "Server - lock did not work (%d)\n", status ); - for ( ; ; ) { + for (count=0; ; count++) { status = pthread_cond_wait( &Condition, &Mutex ); if ( status ) fprintf( stderr, "Server - condition wait did not work (%d)\n", status ); - if ((++count % 2) == 0) + if ((count % 2) == 0) LED_OFF(); else LED_ON(); |