summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:54:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:54:10 +0000
commitdbade675fdd1f84f620d0cda54caf0f23953733c (patch)
tree72a2add154442414455c9dc8983f2e28277e505d /nuttx/examples/ostest
parent3f719364f834d32d2a4b14445a5178ac7d1326ef (diff)
downloadpx4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.gz
px4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.bz2
px4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.zip
Add test for CONFIG_SEM_PREALLOCHOLDERS > 0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1597 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest')
-rw-r--r--nuttx/examples/ostest/prioinherit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/examples/ostest/prioinherit.c b/nuttx/examples/ostest/prioinherit.c
index 850c2fc30..92238a8c2 100644
--- a/nuttx/examples/ostest/prioinherit.c
+++ b/nuttx/examples/ostest/prioinherit.c
@@ -60,7 +60,11 @@
# define CONFIG_SEM_PREALLOCHOLDERS 0
#endif
#define NLOWPRI_THREADS (CONFIG_SEM_PREALLOCHOLDERS+1)
-#define NHIGHPRI_THREADS 1
+
+#ifndef CONFIG_SEM_NNESTPRIO
+# define CONFIG_SEM_NNESTPRIO 0
+#endif
+#define NHIGHPRI_THREADS (CONFIG_SEM_NNESTPRIO+1)
/****************************************************************************
* Private Data