Minor changes to the trace macros.

pull/1/head
Richard Barry 17 years ago
parent 06e8e93eb5
commit ada4744871

@ -314,6 +314,8 @@ size_t xQueueSizeInBytes;
mutual exclusion is required to test the pxMutexHolder variable. */
if( pxMutex->pxMutexHolder == xTaskGetCurrentTaskHandle() )
{
traceGIVE_MUTEX_RECURSIVE( pxMutex );
/* uxRecursiveCallCount cannot be zero if pxMutexHolder is equal to
the task handle, therefore no underflow check is required. Also,
uxRecursiveCallCount is only modified by the mutex holder, and as
@ -329,9 +331,7 @@ size_t xQueueSizeInBytes;
xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
}
xReturn = pdPASS;
traceGIVE_MUTEX_RECURSIVE( pxMutex );
xReturn = pdPASS;
}
else
{
@ -356,6 +356,8 @@ size_t xQueueSizeInBytes;
/* Comments regarding mutual exclusion as per those within
xQueueGiveMutexRecursive(). */
traceTAKE_MUTEX_RECURSIVE( pxMutex );
if( pxMutex->pxMutexHolder == xTaskGetCurrentTaskHandle() )
{
( pxMutex->uxRecursiveCallCount )++;
@ -371,9 +373,7 @@ size_t xQueueSizeInBytes;
{
( pxMutex->uxRecursiveCallCount )++;
}
}
traceTAKE_MUTEX_RECURSIVE( pxMutex );
}
return xReturn;
}

@ -1414,6 +1414,8 @@ inline void vTaskIncrementTick( void )
void vTaskSwitchContext( void )
{
traceTASK_SWITCHED_OUT();
if( uxSchedulerSuspended != ( unsigned portBASE_TYPE ) pdFALSE )
{
/* The scheduler is currently suspended - do not allow a context

Loading…
Cancel
Save