fix a tick list add bug

fix a tick list add bug: if a lower priority task has the same tick_expires with a higher priority task in the tick list, the lower should be added behind the higher one.
This commit is contained in:
SheldonDai
2019-09-23 20:40:31 +08:00
parent 45e8c1e6af
commit 4cfe60a9cb
3 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ __STATIC_INLINE__ void task_reset(k_task_t *task)
#if TOS_CFG_MUTEX_EN > 0u
tos_list_init(&task->mutex_own_list);
task->prio_pending = K_TASK_PRIO_INVALID;
task->prio_pending = K_TASK_PRIO_INVALID;
#endif
task->pend_state = PEND_STATE_NONE;