diff --git a/ChangeLog b/ChangeLog index 3443e8a7f7e..f1ef228d174 100644 --- a/ChangeLog +++ b/ChangeLog @@ -174,5 +174,7 @@ * include/nuttx/compiler.h: Fix for using SDCC with the Z80. * include/assert.h & arch/pjrc-8051/src/up_assert.c: SDCC does support __FILE__and __LINE__ (not tested) + * examples/ostest/barrier.c: Don't call usleep() when signals are + disabled. * Started m68322 diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index c88c341547e..bc4d64a16b8 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -608,6 +608,8 @@ Other memory: * include/nuttx/compiler.h: Fix for using SDCC with the Z80. * include/assert.h & arch/pjrc-8051/src/up_assert.c: SDCC does support __FILE__and __LINE__ (not tested) + * examples/ostest/barrier.c: Don't call usleep() when signals are + disabled. * Started m68322 diff --git a/examples/ostest/barrier.c b/examples/ostest/barrier.c index f84ae36df0d..731eaa8174c 100644 --- a/examples/ostest/barrier.c +++ b/examples/ostest/barrier.c @@ -49,7 +49,9 @@ static void *barrier_func(void *parameter) int status; printf("barrier_func: Thread %d started\n", id); +#ifndef CONFIG_DISABLE_SIGNALS usleep(500*1000); +#endif /* Take the semaphore */ @@ -68,7 +70,9 @@ static void *barrier_func(void *parameter) printf("barrier_func: ERROR thread %d could not get semaphore value\n", id); } +#ifndef CONFIG_DISABLE_SIGNALS usleep(500*1000); +#endif printf("barrier_func: Thread %d done\n", id); return NULL; }