Add test and correct code for the unusual case of a task using an event group to synchronise only with itself.

Add critical sections around call to prvResetNextTaskUnblockTime() that can occur from within a task.
This commit is contained in:
Richard Barry
2014-03-31 02:12:17 +00:00
parent ef7f3c5320
commit 82207ebffa
3 changed files with 43 additions and 3 deletions

View File

@ -179,7 +179,7 @@ BaseType_t xTimeoutOccurred = pdFALSE;
/* Rendezvous always clear the bits. They will have been cleared
already unless this is the only task in the rendezvous. */
pxEventBits->uxEventBits &= uxBitsToWaitFor;
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
xTicksToWait = 0;
}