Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Death-test fixes #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Demo/Common/Full/death.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static volatile short sCreationCount = 0;
/* Used to store the number of tasks that were originally running so the creator
task can tell if any of the suicidal tasks have failed to die. */
static volatile unsigned portBASE_TYPE uxTasksRunningAtStart = 0;
static const unsigned portBASE_TYPE uxMaxNumberOfExtraTasksRunning = 5;
static const unsigned portBASE_TYPE uxMaxNumberOfExtraTasksRunning = 6;

/* Used to store a handle to the tasks that should be killed by a suicidal task,
before it kills itself. */
Expand Down Expand Up @@ -181,7 +181,11 @@ unsigned portBASE_TYPE uxTasksRunningNow;
{
sReturn = pdFALSE;
}

else
{
sLastCreationCount = sCreationCount;
}

uxTasksRunningNow = uxTaskGetNumberOfTasks();

if( uxTasksRunningNow < uxTasksRunningAtStart )
Expand Down