bool OS_Queue_IsFull (queue)
bool OS_Queue_IsFull_I (queue)
Check if queue of messages is full.
OS_ENABLE_QUEUE constant must be defined in OSAcfg.h.
Everywhere
queue |
Queue of messages descriptor. Variable of OST_QUEUE type. |
false |
there is room to add a new message |
true |
queue is full |
OST_QUEUE queue; void Task (void) { char buf[10]; for (;;) { /*...*/ if (!OS_Queue_IsFull (queue)) { // If there is room OS_Queue_Send_Now(queue, (OST_MSG)&buf); // then send message }; /*...*/ } }
OS_IsQMsgFull