components/freertos/queue.c
/*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
/*-----------------------------------------------------------*/
lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer.
lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer .
UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue )
{
    UBaseType_t uxReturn;
    Queue_t * const pxQueue = xQueue;
    configASSERT( pxQueue );
    taskENTER_CRITICAL();
    {
        uxReturn = pxQueue->uxLength - pxQueue->uxMessagesWaiting;
    }
    taskEXIT_CRITICAL();
    return uxReturn;
}
UBaseType_t uxQueueSpacesAvailable ( const QueueHandle_t xQueue ) { UBaseType_t uxReturn ; Queue_t * const pxQueue = xQueue ; configASSERT ( pxQueue ) ; taskENTER_CRITICAL ( ) ; { uxReturn = pxQueue -> uxLength - pxQueue -> uxMessagesWaiting ; } taskEXIT_CRITICAL ( ) ; return uxReturn ; }
lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer.
lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer .