/* Uses a critical section to determine if there is any data in a queue. */
static signed portBASE_TYPE prvIsQueueEmpty(const xQueueHandle pxQueue) PRIVILEGED_FUNCTION
/* Uses a critical section to determine if there is any data in a queue. */
static signed portBASE_TYPE prvIsQueueEmpty(const xQueueHandle pxQueue) PRIVILEGED_FUNCTION
{
signed portBASE_TYPE xReturn;
	taskENTER_CRITICAL();
		xReturn = ( pxQueue->uxMessagesWaiting == ( unsigned portBASE_TYPE ) 0 );
	taskEXIT_CRITICAL();
	return xReturn;
}