Repartition functionality in preparation for nested, pending reprioritization

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1591 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-03-10 23:52:46 +00:00
parent 8e93df66c6
commit 367beee228
17 changed files with 180 additions and 103 deletions
+8 -2
View File
@@ -237,7 +237,10 @@ static void *lowpri_thread(void *parameter)
}
else
{
printf("lowpri_thread: Priority before sem_post: %d\n", sparam.sched_priority);
printf("lowpri_thread: %s priority before sem_post: %d\n",
sparam.sched_priority != g_highpri ? "ERROR" : "SUCCESS",
sparam.sched_priority);
if (sparam.sched_priority != g_highpri)
{
printf(" ERROR should have been %d\n", g_highpri);
@@ -252,7 +255,10 @@ static void *lowpri_thread(void *parameter)
}
else
{
printf("lowpri_thread: Final priority: %d\n", sparam.sched_priority);
printf("lowpri_thread: %s final priority: %d\n",
sparam.sched_priority != g_lowpri ? "ERROR" : "SUCCESS",
sparam.sched_priority);
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);