diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-13 00:54:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-13 00:54:10 +0000 |
commit | dbade675fdd1f84f620d0cda54caf0f23953733c (patch) | |
tree | 72a2add154442414455c9dc8983f2e28277e505d /nuttx/examples/ostest/prioinherit.c | |
parent | 3f719364f834d32d2a4b14445a5178ac7d1326ef (diff) | |
download | nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.gz nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.bz2 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/prioinherit.c')
-rw-r--r-- | nuttx/examples/ostest/prioinherit.c | 6 |
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 |