Lines Matching refs:pxCurrentTCB
89 if( pxCurrentTCB->uxPriority < ( pxTCB )->uxPriority ) \
191 listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \
226 listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \
283 #define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( pxHandle )…
309 …#define taskTASK_IS_RUNNING( pxTCB ) ( ( ( pxTCB ) == pxCurrentTCB ) ? ( …
310 …#define taskTASK_IS_RUNNING_OR_SCHEDULED_TO_YIELD( pxTCB ) ( ( ( pxTCB ) == pxCurrentTCB ) ? ( …
446 portDONT_DISCARD PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB = NULL; variable
452 #define pxCurrentTCB xTaskGetCurrentTaskHandle() macro
2027 if( pxCurrentTCB == NULL ) in prvAddNewTaskToReadyList()
2031 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
2052 if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) in prvAddNewTaskToReadyList()
2054 pxCurrentTCB = pxNewTCB; in prvAddNewTaskToReadyList()
2322 if( pxTCB == pxCurrentTCB ) in vTaskDelete()
2499 if( pxTCB == pxCurrentTCB ) in eTaskGetState()
2816 if( pxTCB != pxCurrentTCB ) in vTaskPrioritySet()
2821 if( uxNewPriority > pxCurrentTCB->uxPriority ) in vTaskPrioritySet()
3235 if( pxTCB == pxCurrentTCB ) in vTaskSuspend()
3260 pxCurrentTCB = NULL; in vTaskSuspend()
3366 if( ( pxTCB != pxCurrentTCB ) && ( pxTCB != NULL ) ) in vTaskResume()
3458 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskResumeFromISR()
3716 configSET_TLS_BLOCK( pxCurrentTCB->xTLSBlock ); in vTaskStartScheduler()
3926 if( pxCurrentTCB->uxPriority > tskIDLE_PRIORITY ) in prvGetExpectedIdleTime()
4005 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskResumeAll()
4082 taskYIELD_TASK_CORE_IF_USING_PREEMPTION( pxCurrentTCB ); in xTaskResumeAll()
4632 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskAbortDelay()
4787 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskIncrementTick()
4814 … if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > 1U ) in xTaskIncrementTick()
4937 xTCB = ( TCB_t * ) pxCurrentTCB; in vTaskSetApplicationTaskTag()
5031 xTCB = pxCurrentTCB; in xTaskCallApplicationTaskHook()
5088 … pxCurrentTCB->ulRunTimeCounter += ( ulTotalRunTime[ 0 ] - ulTaskSwitchedInTime[ 0 ] ); in vTaskSwitchContext()
5105 pxCurrentTCB->iTaskErrno = FreeRTOS_errno; in vTaskSwitchContext()
5120 portTASK_SWITCH_HOOK( pxCurrentTCB ); in vTaskSwitchContext()
5125 FreeRTOS_errno = pxCurrentTCB->iTaskErrno; in vTaskSwitchContext()
5133 configSET_TLS_BLOCK( pxCurrentTCB->xTLSBlock ); in vTaskSwitchContext()
5264 vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) ); in vTaskPlaceOnEventList()
5287 …listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), xItemValue | taskEVENT_LIST_ITEM_VALUE… in vTaskPlaceOnUnorderedEventList()
5294 listINSERT_END( pxEventList, &( pxCurrentTCB->xEventListItem ) ); in vTaskPlaceOnUnorderedEventList()
5322 listINSERT_END( pxEventList, &( pxCurrentTCB->xEventListItem ) ); in vTaskPlaceOnEventListRestricted()
5396 if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskRemoveFromEventList()
5479 if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) in vTaskRemoveFromUnorderedEventList()
5551 if( pxCurrentTCB->ucDelayAborted != ( uint8_t ) pdFALSE ) in xTaskCheckForTimeOut()
5555 pxCurrentTCB->ucDelayAborted = ( uint8_t ) pdFALSE; in xTaskCheckForTimeOut()
6489 xReturn = pxCurrentTCB; in xTaskGetCurrentTaskHandle()
6524 xReturn = pxCurrentTCB; in xTaskGetCurrentTaskHandleForCore()
6594 if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority ) in xTaskPriorityInherit()
6601 …>xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); in xTaskPriorityInherit()
6625 pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; in xTaskPriorityInherit()
6641 pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; in xTaskPriorityInherit()
6644 traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority ); in xTaskPriorityInherit()
6651 if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority ) in xTaskPriorityInherit()
6696 configASSERT( pxTCB == pxCurrentTCB ); in xTaskPriorityDisinherit()
6817 configASSERT( pxTCB != pxCurrentTCB ); in vTaskPriorityDisinheritAfterTimeout()
6930 ( pxCurrentTCB->uxCriticalNesting )++; in vTaskEnterCritical()
6938 if( pxCurrentTCB->uxCriticalNesting == 1U ) in vTaskEnterCritical()
7046 configASSERT( pxCurrentTCB->uxCriticalNesting > 0U ); in vTaskExitCritical()
7052 if( pxCurrentTCB->uxCriticalNesting > 0U ) in vTaskExitCritical()
7054 ( pxCurrentTCB->uxCriticalNesting )--; in vTaskExitCritical()
7056 if( pxCurrentTCB->uxCriticalNesting == 0U ) in vTaskExitCritical()
7575 uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ) ); in uxTaskResetEventItemValue()
7579 …istSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES -… in uxTaskResetEventItemValue()
7595 pxTCB = pxCurrentTCB; in pvTaskIncrementMutexHeldCount()
7636 if( pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] == 0U ) in ulTaskGenericNotifyTake()
7639 pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] = taskWAITING_NOTIFICATION; in ulTaskGenericNotifyTake()
7685 ulReturn = pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ]; in ulTaskGenericNotifyTake()
7691 pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] = ( uint32_t ) 0U; in ulTaskGenericNotifyTake()
7695 pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] = ulReturn - ( uint32_t ) 1; in ulTaskGenericNotifyTake()
7703 pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] = taskNOT_WAITING_NOTIFICATION; in ulTaskGenericNotifyTake()
7739 if( pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] != taskNOTIFICATION_RECEIVED ) in xTaskGenericNotifyWait()
7744 pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] &= ~ulBitsToClearOnEntry; in xTaskGenericNotifyWait()
7747 pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] = taskWAITING_NOTIFICATION; in xTaskGenericNotifyWait()
7798 *pulNotificationValue = pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ]; in xTaskGenericNotifyWait()
7805 if( pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] != taskNOTIFICATION_RECEIVED ) in xTaskGenericNotifyWait()
7814 pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] &= ~ulBitsToClearOnExit; in xTaskGenericNotifyWait()
7818 pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] = taskNOT_WAITING_NOTIFICATION; in xTaskGenericNotifyWait()
8068 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in xTaskGenericNotifyFromISR()
8186 if( pxTCB->uxPriority > pxCurrentTCB->uxPriority ) in vTaskGenericNotifyGiveFromISR()
8428 pxCurrentTCB->ucDelayAborted = ( uint8_t ) pdFALSE; in prvAddCurrentTaskToDelayedList()
8434 if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) in prvAddCurrentTaskToDelayedList()
8438 portRESET_READY_PRIORITY( pxCurrentTCB->uxPriority, uxTopReadyPriority ); in prvAddCurrentTaskToDelayedList()
8452 listINSERT_END( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) ); in prvAddCurrentTaskToDelayedList()
8462 listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); in prvAddCurrentTaskToDelayedList()
8469 vListInsert( pxOverflowDelayedList, &( pxCurrentTCB->xStateListItem ) ); in prvAddCurrentTaskToDelayedList()
8476 vListInsert( pxDelayedList, &( pxCurrentTCB->xStateListItem ) ); in prvAddCurrentTaskToDelayedList()
8500 listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); in prvAddCurrentTaskToDelayedList()
8506 vListInsert( pxOverflowDelayedList, &( pxCurrentTCB->xStateListItem ) ); in prvAddCurrentTaskToDelayedList()
8512 vListInsert( pxDelayedList, &( pxCurrentTCB->xStateListItem ) ); in prvAddCurrentTaskToDelayedList()
8652 pxCurrentTCB = NULL; in vTaskResetState()