diff --git a/ChangeLog b/ChangeLog index 3443e8a7f7e0ac3f8df9c879f194975db487dafd..f1ef228d1746da7244ba31bd2d39a81136bada0a 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 c88c341547e2c743cd010b5daa8a88d360bf2e7f..bc4d64a16b8835c995f235a3ea315723399e0919 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 </pre></ul> diff --git a/examples/ostest/barrier.c b/examples/ostest/barrier.c index f84ae36df0dbfd3757094e10938f1ba121d27055..731eaa8174c1d5a2360052717a9f7c5e649a93b3 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; }