summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/ostest/barrier.c4
1 files changed, 4 insertions, 0 deletions
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;
}