| 5638 | #if ( configUSE_MUTEXES == 1 ) |
| 5639 | |
| 5640 | TaskHandle_t pvTaskIncrementMutexHeldCount( void ) |
| 5641 | { |
| 5642 | /* If xSemaphoreCreateMutex() is called before any tasks have been created |
| 5643 | * then pxCurrentTCB will be NULL. */ |
| 5644 | if( pxCurrentTCB != NULL ) |
| 5645 | { |
| 5646 | ( pxCurrentTCB->uxMutexesHeld )++; |
| 5647 | } |
| 5648 | |
| 5649 | return pxCurrentTCB; |
| 5650 | } |
| 5651 | |
| 5652 | #endif /* configUSE_MUTEXES */ |
| 5653 | /*-----------------------------------------------------------*/ |
no outgoing calls
no test coverage detected