MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / prvIsQueueEmpty

Function prvIsQueueEmpty

queue.c:2354–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2352/*-----------------------------------------------------------*/
2353
2354static BaseType_t prvIsQueueEmpty( const Queue_t * pxQueue )
2355{
2356 BaseType_t xReturn;
2357
2358 taskENTER_CRITICAL();
2359 {
2360 if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
2361 {
2362 xReturn = pdTRUE;
2363 }
2364 else
2365 {
2366 xReturn = pdFALSE;
2367 }
2368 }
2369 taskEXIT_CRITICAL();
2370
2371 return xReturn;
2372}
2373/*-----------------------------------------------------------*/
2374
2375BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue )

Callers 3

xQueueReceiveFunction · 0.85
xQueueSemaphoreTakeFunction · 0.85
xQueuePeekFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected