xPendingReadyList help?

Dear All, Can you kindly tell me why when the schedular is suspended the recent readied task is put in xPendingReadyList list not in the ready queue directly? and what will happen if we put it directly on the ready queue? best regards ashawky

xPendingReadyList help?

When the scheduler is suspended a context switch must not be performed but as interrupts remain enabled it is possible that a task is unblocked.  A task that unblocks when the scheduler is suspended is therefore placed into the pending ready list until such time that the scheduler is unsuspended.  When the scheduler is unsuspended any ‘pending’ ready tasks are moved the the ready state. Dave.