mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-06 21:25:00 -05:00
converted exclusion to affinity
This commit is contained in:
parent
b9a17479a0
commit
d59bfca4f9
4 changed files with 55 additions and 44 deletions
|
|
@ -170,6 +170,14 @@ typedef enum
|
|||
*/
|
||||
#define tskIDLE_PRIORITY ( ( UBaseType_t ) 0U )
|
||||
|
||||
/**
|
||||
* Defines affinity to all available cores.
|
||||
*
|
||||
*/
|
||||
#define tskNO_AFFINITY ( ( UBaseType_t ) -1U )
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* task. h
|
||||
*
|
||||
|
|
@ -1235,8 +1243,10 @@ void vTaskResume( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
|
|||
*/
|
||||
BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume ) PRIVILEGED_FUNCTION;
|
||||
|
||||
void vTaskCoreExclusionSet( const TaskHandle_t xTask, UBaseType_t uxCoreExclude );
|
||||
UBaseType_t vTaskCoreExclusionGet( const TaskHandle_t xTask );
|
||||
#if ( configUSE_CORE_AFFINITY == 1)
|
||||
void vTaskCoreAffinitySet( const TaskHandle_t xTask, UBaseType_t uxCoreAffinityMask );
|
||||
UBaseType_t vTaskCoreAffinityGet( const TaskHandle_t xTask );
|
||||
#endif
|
||||
|
||||
void vTaskPreemptionDisable( const TaskHandle_t xTask );
|
||||
void vTaskPreemptionEnable( const TaskHandle_t xTask );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue