MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / pvTaskIncrementMutexHeldCount

Function pvTaskIncrementMutexHeldCount

tasks.c:5640–5650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/*-----------------------------------------------------------*/

Callers 1

xQueueSemaphoreTakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected