feat(freertos-smp): Update queueUNLOCK() to receive yield status

This commit is contained in:
Sudeep Mohanty 2025-08-22 17:00:04 +02:00
parent 49b89b2f25
commit 1585b157d5

View file

@ -348,9 +348,10 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
} while( 0 )
#define queueUNLOCK( pxQueue, xYieldAPI ) \
do { \
BaseType_t xAlreadyYielded; \
prvUnlockQueue( ( pxQueue ) ); \
taskDATA_GROUP_UNLOCK( &( ( pxQueue )->xTaskSpinlock ) ); \
if( ( xYieldAPI ) == pdTRUE ) \
xAlreadyYielded = taskDATA_GROUP_UNLOCK( &( ( pxQueue )->xTaskSpinlock ) ); \
if( ( xAlreadyYielded == pdFALSE ) && ( ( xYieldAPI ) == pdTRUE ) ) \
{ \
taskYIELD_WITHIN_API(); \
} \