From 3db8004bee29227a4b56757b75cdc2e8f80d8dfc Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 29 Sep 2010 02:07:39 +0000 Subject: Fix bug in prio inheritance test git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2951 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/ostest/prioinherit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/examples/ostest') 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) { -- cgit v1.2.3