summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest/main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 22:32:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 22:32:53 +0000
commit40220c909fa3d16296ef0d6cdd12cf209c16674e (patch)
tree8f0c2f2c40e13f4478d67740d015bf3f28ccf7f0 /nuttx/examples/ostest/main.c
parent66ed96432d7d27f4bb321166538a1b71c277d154 (diff)
downloadpx4-nuttx-40220c909fa3d16296ef0d6cdd12cf209c16674e.tar.gz
px4-nuttx-40220c909fa3d16296ef0d6cdd12cf209c16674e.tar.bz2
px4-nuttx-40220c909fa3d16296ef0d6cdd12cf209c16674e.zip
Add test of pthread barrier logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@144 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/main.c')
-rw-r--r--nuttx/examples/ostest/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c
index c78fc0cde..c06ab86df 100644
--- a/nuttx/examples/ostest/main.c
+++ b/nuttx/examples/ostest/main.c
@@ -277,6 +277,14 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
+#ifndef CONFIG_DISABLE_PTHREAD
+ /* Verify pthread barriers */
+
+ printf("\nuser_main: barrier test\n");
+ barrier_test();
+ check_test_memory_usage();
+#endif
+
/* Compare memory usage at time user_start started until
* user_main exits. These should not be identical, but should
* be similar enough that we can detect any serious OS memory