summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-29 02:07:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-29 02:07:39 +0000
commit3db8004bee29227a4b56757b75cdc2e8f80d8dfc (patch)
tree33a41785475808355742363c3f302b61c1f8ee7b /nuttx/examples/ostest
parent8ee915f00a125220bb129f6c410e40f331f5d929 (diff)
downloadpx4-nuttx-3db8004bee29227a4b56757b75cdc2e8f80d8dfc.tar.gz
px4-nuttx-3db8004bee29227a4b56757b75cdc2e8f80d8dfc.tar.bz2
px4-nuttx-3db8004bee29227a4b56757b75cdc2e8f80d8dfc.zip
Fix bug in prio inheritance test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2951 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest')
-rw-r--r--nuttx/examples/ostest/prioinherit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/examples/ostest/prioinherit.c b/nuttx/examples/ostest/prioinherit.c
index bcb8d61f1..5d59c1297 100644
--- a/nuttx/examples/ostest/prioinherit.c
+++ b/nuttx/examples/ostest/prioinherit.c
@@ -394,6 +394,10 @@ void priority_inheritance(void)
printf("priority_inheritance: Started\n");
+ g_middlestate = NOTSTARTED;
+ for (i = 0; i < NHIGHPRI_THREADS; i++) g_highstate[i] = NOTSTARTED;
+ for (i = 0; i < NLOWPRI_THREADS; i++) g_lowstate[i] = NOTSTARTED;
+
status = sched_getparam (getpid(), &sparam);
if (status != 0)
{