/* Co-routines that are readied by an interrupt cannot be placed directly into the ready lists (there is no mutual exclusion). Instead they are placed in in the pending ready list in order that they can later be moved to the ready list by the co-routine scheduler.  */
static void prvCheckPendingReadyList(void)
/* Co-routines that are readied by an interrupt cannot be placed directly into the ready lists (there is no mutual exclusion). Instead they are placed in in the pending ready list in order that they can later be moved to the ready list by the co-routine scheduler.  */
static void prvCheckPendingReadyList(void)
{
	while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE )
	{
		corCRCB *pxUnblockedCRCB;
		portDISABLE_INTERRUPTS();
		{			pxUnblockedCRCB = ( corCRCB * ) listGET_OWNER_OF_HEAD_ENTRY( (&xPendingReadyCoRoutineList) );			vListRemove( &( pxUnblockedCRCB->xEventListItem ) );
		}
		portENABLE_INTERRUPTS();
		vListRemove( &( pxUnblockedCRCB->xGenericListItem ) );
		prvAddCoRoutineToReadyQueue( pxUnblockedCRCB );	}
}