diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-09 20:39:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-09 20:39:21 +0000 |
commit | d54136e027d2565c582df056f873669d4b0ccd61 (patch) | |
tree | a4c9028afa0739c4c63f42056efa89447e3a2b04 | |
parent | e2dfa4a4d0f4bb032baa68cbce7ab64b48d8d7ba (diff) | |
download | nuttx-d54136e027d2565c582df056f873669d4b0ccd61.tar.gz nuttx-d54136e027d2565c582df056f873669d4b0ccd61.tar.bz2 nuttx-d54136e027d2565c582df056f873669d4b0ccd61.zip |
Don't call usleep if signals are disabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@278 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rw-r--r-- | nuttx/Documentation/NuttX.html | 2 | ||||
-rw-r--r-- | nuttx/examples/ostest/barrier.c | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 3443e8a7f..f1ef228d1 100644 --- a/nuttx/ChangeLog +++ b/nuttx/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/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index c88c34154..bc4d64a16 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/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/nuttx/examples/ostest/barrier.c b/nuttx/examples/ostest/barrier.c index f84ae36df..731eaa817 100644 --- a/nuttx/examples/ostest/barrier.c +++ b/nuttx/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; } |