File tree 2 files changed +16
-14
lines changed
2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -3574,9 +3574,7 @@ TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION;
3574
3574
/*
3575
3575
* Return the handle of the task running on specified core.
3576
3576
*/
3577
- #if ( configNUMBER_OF_CORES > 1 )
3578
- TaskHandle_t xTaskGetCurrentTaskHandleForCore ( BaseType_t xCoreID ) PRIVILEGED_FUNCTION ;
3579
- #endif
3577
+ TaskHandle_t xTaskGetCurrentTaskHandleForCore ( BaseType_t xCoreID ) PRIVILEGED_FUNCTION ;
3580
3578
3581
3579
/*
3582
3580
* Shortcut used by the queue implementation to prevent unnecessary call to
Original file line number Diff line number Diff line change @@ -6559,23 +6559,27 @@ static void prvResetNextTaskUnblockTime( void )
6559
6559
6560
6560
return xReturn ;
6561
6561
}
6562
+ #endif /* #if ( configNUMBER_OF_CORES == 1 ) */
6562
6563
6563
- TaskHandle_t xTaskGetCurrentTaskHandleForCore ( BaseType_t xCoreID )
6564
- {
6565
- TaskHandle_t xReturn = NULL ;
6564
+ TaskHandle_t xTaskGetCurrentTaskHandleForCore ( BaseType_t xCoreID )
6565
+ {
6566
+ TaskHandle_t xReturn = NULL ;
6566
6567
6567
- traceENTER_xTaskGetCurrentTaskHandleForCore ( xCoreID );
6568
+ traceENTER_xTaskGetCurrentTaskHandleForCore ( xCoreID );
6568
6569
6569
- if ( taskVALID_CORE_ID ( xCoreID ) != pdFALSE )
6570
- {
6570
+ if ( taskVALID_CORE_ID ( xCoreID ) != pdFALSE )
6571
+ {
6572
+ #if ( configNUMBER_OF_CORES == 1 )
6573
+ xReturn = pxCurrentTCB ;
6574
+ #else /* #if ( configNUMBER_OF_CORES == 1 ) */
6571
6575
xReturn = pxCurrentTCBs [ xCoreID ];
6572
- }
6576
+ #endif /* #if ( configNUMBER_OF_CORES == 1 ) */
6577
+ }
6573
6578
6574
- traceRETURN_xTaskGetCurrentTaskHandleForCore ( xReturn );
6579
+ traceRETURN_xTaskGetCurrentTaskHandleForCore ( xReturn );
6575
6580
6576
- return xReturn ;
6577
- }
6578
- #endif /* #if ( configNUMBER_OF_CORES == 1 ) */
6581
+ return xReturn ;
6582
+ }
6579
6583
6580
6584
#endif /* ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) */
6581
6585
/*-----------------------------------------------------------*/
You can’t perform that action at this time.
0 commit comments