vTaskPrioritySet( NULL, uxOurPriority + 1 );\r
( *pulCounter )++; \r
vTaskPrioritySet( NULL, uxOurPriority );\r
+\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
}\r
}\r
/*-----------------------------------------------------------*/\r
portEXIT_CRITICAL();\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
/* Resume the continuous count task and do it all again. */\r
vTaskResume( xContinuousIncrementHandle );\r
}\r
}\r
xTaskResumeAll();\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
} while( xGotValue == pdFALSE );\r
\r
if( ulReceivedValue != ulExpectedValue )\r
xTaskResumeAll();\r
prvCheckTaskCounters( evtLOWEST_PRIORITY_INDEX, 1 );\r
\r
- \r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif \r
\r
/* Do the same basic test another few times - selectively suspending\r
and resuming tasks and each time calling prvCheckTaskCounters() passing\r
prvCheckTaskCounters( evtHIGHEST_PRIORITY_INDEX_1, 1 );\r
\r
\r
-\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
\r
\r
/* Now a slight change, first suspend all tasks. */\r
}\r
}\r
xTaskResumeAll();\r
+\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
\r
/* We should have been preempted by resuming the scheduler - so by the\r
time we are running again we expect the high priority task to have \r
}\r
}\r
\r
+\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
+\r
/*********************************************************************\r
Test 2\r
\r
}\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
\r
/*********************************************************************\r
Test 3\r
vTaskDelay( bktSHORT_WAIT );\r
xRunIndicator = 0;\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
\r
/*********************************************************************\r
Test 4\r
}\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
/*********************************************************************\r
Test 2\r
\r
}\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
\r
/*********************************************************************\r
Test 3\r
( *puxLoopCounter )++;\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
/* If the semaphore count is zero then we should not be able to 'take' \r
the semaphore. */\r
if( xSemaphoreTake( xSemaphore, countDONT_BLOCK ) == pdPASS )\r
( *puxLoopCounter )++;\r
}\r
\r
+ #if configUSE_PREEMPTION == 0\r
+ taskYIELD();\r
+ #endif\r
+\r
/* If the semaphore count is at its maximum then we should not be able to\r
'give' the semaphore. */\r
if( xSemaphoreGive( xSemaphore ) == pdPASS )\r