mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Remove the 'death' tasks from the demo as on Win2K and WinXP the behaviour of the TerminateThread() function is such that resources leak and eventually the 'death' tests will fail.
This commit is contained in:
parent
f3dbcaf725
commit
97ce25072a
4 changed files with 9 additions and 19 deletions
|
@ -96,7 +96,6 @@
|
|||
#include "QPeek.h"
|
||||
#include "recmutex.h"
|
||||
#include "flop.h"
|
||||
#include "death.h"
|
||||
|
||||
/* Priorities at which the tasks are created. */
|
||||
#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
|
||||
|
@ -130,11 +129,6 @@ int main( void )
|
|||
vStartMathTasks( mainFLOP_TASK_PRIORITY );
|
||||
vStartRecursiveMutexTasks();
|
||||
|
||||
/* The suicide tasks must be created last as they need to know how many
|
||||
tasks were running prior to their creation in order to ascertain whether
|
||||
or not the correct/expected number of tasks are running at any given time. */
|
||||
vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );
|
||||
|
||||
/* Start the scheduler itself. */
|
||||
vTaskStartScheduler();
|
||||
|
||||
|
@ -190,10 +184,6 @@ char *pcStatusMessage = "OK";
|
|||
{
|
||||
pcStatusMessage = "Error: Flop";
|
||||
}
|
||||
else if( xIsCreateTaskStillRunning() != pdPASS )
|
||||
{
|
||||
pcStatusMessage = "Error: Create";
|
||||
}
|
||||
else if( xAreRecursiveMutexTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
pcStatusMessage = "Error: RecMutex";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue