Skip to content

Commit e579350

Browse files
feat(freertos-smp): Update event groups unlock to use taskDATA_GROUP_UNLOCK()
1 parent a10f84e commit e579350

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

event_groups.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,7 @@
112112
*/
113113
#if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) )
114114
#define event_groupsLOCK( pxEventBits ) taskDATA_GROUP_LOCK( &( ( pxEventBits )->xTaskSpinlock ) )
115-
#define event_groupsUNLOCK( pxEventBits ) \
116-
( { \
117-
taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) ); \
118-
BaseType_t xAlreadyYielded; \
119-
if( xTaskUnlockCanYield() == pdTRUE ) \
120-
{ \
121-
taskYIELD_WITHIN_API(); \
122-
xAlreadyYielded = pdTRUE; \
123-
} \
124-
else \
125-
{ \
126-
xAlreadyYielded = pdFALSE; \
127-
} \
128-
xAlreadyYielded; \
129-
} )
115+
#define event_groupsUNLOCK( pxEventBits ) taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) )
130116
#else /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */
131117
#define event_groupsLOCK( pxEventBits ) vTaskSuspendAll()
132118
#define event_groupsUNLOCK( pxEventBits ) xTaskResumeAll()

0 commit comments

Comments
 (0)