Available Languages?:

OSA : OS_Squeue_IsEmpty

bool OS_Squeue_IsEmpty (squeue)
bool OS_Squeue_IsEmpty_I (squeue)

Check if queue of simple messages is empty.

OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.

For PIC16, message queues can be allocated only in bank0 or bank1

Call allowed:

Everywhere

Parameters:

squeue Queue of simple messages descriptor. Variable of OST_SQUEUE type.

Returns:

false there are some messages in the squeue
true queue is empty

Example:

OST_SQUEUE squeue;
 
void Task (void)
{
    for (;;) {
        /*...*/
        if (OS_Squeue_IsEmpty (squeue)) {
            /* There is no messages in squeue */
        } else {
            /* The squeue contains some messages */
        };
        /*...*/
    }
}

Old style name

OS_IsQSMsgFull

See also

 
en/osa/ref/allservices/os_squeue_isempty.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki