|
|
|
@ -201,7 +201,7 @@ portTickType xTimeToWake;
|
|
|
|
|
/* We must remove ourselves from the ready list before adding
|
|
|
|
|
ourselves to the blocked list as the same list item is used for
|
|
|
|
|
both lists. */
|
|
|
|
|
uxListRemove( ( xListItem * ) &( pxCurrentCoRoutine->xGenericListItem ) );
|
|
|
|
|
( void ) uxListRemove( ( xListItem * ) &( pxCurrentCoRoutine->xGenericListItem ) );
|
|
|
|
|
|
|
|
|
|
/* The list item will be inserted in wake time order. */
|
|
|
|
|
listSET_LIST_ITEM_VALUE( &( pxCurrentCoRoutine->xGenericListItem ), xTimeToWake );
|
|
|
|
@ -241,11 +241,11 @@ static void prvCheckPendingReadyList( void )
|
|
|
|
|
portDISABLE_INTERRUPTS();
|
|
|
|
|
{
|
|
|
|
|
pxUnblockedCRCB = ( corCRCB * ) listGET_OWNER_OF_HEAD_ENTRY( (&xPendingReadyCoRoutineList) );
|
|
|
|
|
uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
|
|
|
( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
|
|
|
}
|
|
|
|
|
portENABLE_INTERRUPTS();
|
|
|
|
|
|
|
|
|
|
uxListRemove( &( pxUnblockedCRCB->xGenericListItem ) );
|
|
|
|
|
( void ) uxListRemove( &( pxUnblockedCRCB->xGenericListItem ) );
|
|
|
|
|
prvAddCoRoutineToReadyQueue( pxUnblockedCRCB );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -296,7 +296,7 @@ corCRCB *pxCRCB;
|
|
|
|
|
/* Is the co-routine waiting on an event also? */
|
|
|
|
|
if( pxCRCB->xEventListItem.pvContainer )
|
|
|
|
|
{
|
|
|
|
|
uxListRemove( &( pxCRCB->xEventListItem ) );
|
|
|
|
|
( void ) uxListRemove( &( pxCRCB->xEventListItem ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
portENABLE_INTERRUPTS();
|
|
|
|
@ -368,7 +368,7 @@ signed portBASE_TYPE xReturn;
|
|
|
|
|
event lists and the pending ready list. This function assumes that a
|
|
|
|
|
check has already been made to ensure pxEventList is not empty. */
|
|
|
|
|
pxUnblockedCRCB = ( corCRCB * ) listGET_OWNER_OF_HEAD_ENTRY( pxEventList );
|
|
|
|
|
uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
|
|
|
( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
|
|
|
vListInsertEnd( ( xList * ) &( xPendingReadyCoRoutineList ), &( pxUnblockedCRCB->xEventListItem ) );
|
|
|
|
|
|
|
|
|
|
if( pxUnblockedCRCB->uxPriority >= pxCurrentCoRoutine->uxPriority )
|
|
|
|
|