/* Uses a critical section to determine if there is any space in a queue. */
static BaseType_t prvIsQueueFull(Queue_t *pxQueue) PRIVILEGED_FUNCTION
/* Uses a critical section to determine if there is any space in a queue. */
static BaseType_t prvIsQueueFull(Queue_t *pxQueue) PRIVILEGED_FUNCTION
{
BaseType_t xReturn;
	taskENTER_CRITICAL_ISR(&pxQueue->mux);
	{
		if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
		{
			xReturn = pdTRUE;
		}
		else
		{
			xReturn = pdFALSE;
		}
	}
	taskEXIT_CRITICAL_ISR(&pxQueue->mux);
	return xReturn;
}