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.
Everywhere
squeue |
Queue of simple messages descriptor. Variable of OST_SQUEUE type. |
false |
there are some messages in the squeue |
true |
queue is empty |
OST_SQUEUE squeue; void Task (void) { for (;;) { /*...*/ if (OS_Squeue_IsEmpty (squeue)) { /* There is no messages in squeue */ } else { /* The squeue contains some messages */ }; /*...*/ } }
OS_IsQSMsgFull