prvUnlockQueue( pxQueue );\r
( void ) xTaskResumeAll();\r
\r
- /* Return to the original privilege level before exiting the\r
- function. */\r
traceQUEUE_SEND_FAILED( pxQueue );\r
return errQUEUE_FULL;\r
}\r
taskENTER_CRITICAL();\r
{\r
/* Is there data in the queue now? To be running the calling task\r
- must be the highest priority task wanting to access the queue. */\r
+ must be the highest priority task wanting to access the queue. */\r
if( pxQueue->uxMessagesWaiting > ( UBaseType_t ) 0 )\r
{\r
/* Remember the read position in case the queue is only being\r
{\r
prvUnlockQueue( pxQueue );\r
( void ) xTaskResumeAll();\r
- traceQUEUE_RECEIVE_FAILED( pxQueue );\r
- return errQUEUE_EMPTY;\r
+\r
+ if( prvIsQueueEmpty( pxQueue ) != pdFALSE )\r
+ {\r
+ traceQUEUE_RECEIVE_FAILED( pxQueue );\r
+ return errQUEUE_EMPTY;\r
+ }\r
+ else\r
+ {\r
+ mtCOVERAGE_TEST_MARKER();\r
+ }\r
}\r
}\r
}\r