From dbade675fdd1f84f620d0cda54caf0f23953733c Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 13 Mar 2009 00:54:10 +0000 Subject: 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 --- nuttx/examples/ostest/prioinherit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nuttx/examples/ostest') 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 -- cgit v1.2.3