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