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

Function xTaskGetCurrentTaskHandle

tasks.c:4913–4923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4911#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
4912
4913 TaskHandle_t xTaskGetCurrentTaskHandle( void )
4914 {
4915 TaskHandle_t xReturn;
4916 uint32_t ulState;
4917
4918 ulState = portDISABLE_INTERRUPTS();
4919 xReturn = pxCurrentTCBs[ portGET_CORE_ID() ];
4920 portRESTORE_INTERRUPTS( ulState );
4921
4922 return xReturn;
4923 }
4924
4925 TaskHandle_t xTaskGetCurrentTaskHandleCPU( UBaseType_t xCoreID )
4926 {

Callers 11

xQueueGiveMutexRecursiveFunction · 0.85
xQueueTakeMutexRecursiveFunction · 0.85
xStreamBufferSendFunction · 0.85
xStreamBufferReceiveFunction · 0.85
vPortStartFirstTaskFunction · 0.85
vPortEndSchedulerFunction · 0.85
vPortYieldFromISRFunction · 0.85
vPortSystemTickHandlerFunction · 0.85
get_task_tlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected