summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/prioinherit.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/ostest/prioinherit.c')
-rw-r--r--apps/examples/ostest/prioinherit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/examples/ostest/prioinherit.c b/apps/examples/ostest/prioinherit.c
index cd04df7e6..5d0c9b763 100644
--- a/apps/examples/ostest/prioinherit.c
+++ b/apps/examples/ostest/prioinherit.c
@@ -115,7 +115,7 @@ static int nhighpri_waiting(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] == WAITING)
@@ -134,7 +134,7 @@ static int nhighpri_running(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] != DONE)
@@ -268,7 +268,7 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
g_lowstate[threadno-1] = WAITING;
@@ -378,14 +378,14 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
sem_enumholders(&g_sem);
printf("lowpri_thread-%d: Okay... I'm done!\n", threadno);
FFLUSH();
g_lowstate[threadno-1] = DONE;
- return retval;
+ return retval;
}
#endif /* CONFIG_PRIORITY_INHERITANCE && !CONFIG_DISABLE_SIGNALS && !CONFIG_DISABLE_PTHREAD */