]> git.sur5r.net Git - freertos/commit
Only check once before re-setting ready priority
authorgaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 3 Jul 2019 00:08:16 +0000 (00:08 +0000)
committergaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 3 Jul 2019 00:08:16 +0000 (00:08 +0000)
commit244959cb053520be08560e23419689f27a423f7b
treed83eb7f97f4995bd7fb7a99a62a200e262d8101f
parentc55ca7f81cfc9d4cb618608899a5e111b543ff0c
Only check once before re-setting ready priority

The macro taskRESET_READY_PRIORITY checks if the task being removed from the
ready list is the last one and only then resets the top ready priority
by calling portRESET_READY_PRIORITY. If we already know that it is the
last ready task being removed then there is no need to perform the check
again and the macro portRESET_READY_PRIORITY can be called directly. We were
doing the unnecessary check at two places and this commit fixes them.

This commit also increases the time period of check task to ensure that all
the demo tasks get a chance to run before the check is performed.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2670 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
FreeRTOS/Demo/WIN32-MSVC/main_full.c
FreeRTOS/Source/tasks.c