mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-13 08:17:44 -04:00
feat(freertos-smp): Update event groups unlock to use taskDATA_GROUP_UNLOCK()
This commit is contained in:
parent
1b14543e7d
commit
c5667e34d0
1 changed files with 1 additions and 15 deletions
|
@ -112,21 +112,7 @@
|
|||
*/
|
||||
#if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) )
|
||||
#define event_groupsLOCK( pxEventBits ) taskDATA_GROUP_LOCK( &( ( pxEventBits )->xTaskSpinlock ) )
|
||||
#define event_groupsUNLOCK( pxEventBits ) \
|
||||
( { \
|
||||
taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) ); \
|
||||
BaseType_t xAlreadyYielded; \
|
||||
if( xTaskUnlockCanYield() == pdTRUE ) \
|
||||
{ \
|
||||
taskYIELD_WITHIN_API(); \
|
||||
xAlreadyYielded = pdTRUE; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
xAlreadyYielded = pdFALSE; \
|
||||
} \
|
||||
xAlreadyYielded; \
|
||||
} )
|
||||
#define event_groupsUNLOCK( pxEventBits ) taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) )
|
||||
#else /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */
|
||||
#define event_groupsLOCK( pxEventBits ) vTaskSuspendAll()
|
||||
#define event_groupsUNLOCK( pxEventBits ) xTaskResumeAll()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue