====== OSA : OS_Queue_Send_Now ======
**OS_Queue_Send_Now (queue, message)**\\
**OS_Queue_Send_I (queue, message)**\\
=== ===
Send message to queue of messages. If queue is full then oldest message will be dropped.
##[[en:osa:ref:appendix:configuration#System constants|OS_ENABLE_QUEUE]]## constant must be defined in ##[[en:osa:ref:appendix:configuration|OSAcfg.h]]##.
For PIC16, message queues can be allocated only in **bank0** or **bank1**
=== Call allowed: ===
=== Parameters: ===
{| class = "fpl"
|-
|//''queue''//
|Queue of messages descriptor. Variable of ##[[en:osa:ref:description:data_types#OST_QUEUE|OST_QUEUE]]## type.
|-
|//''message''//
|pointer to message body (##[[en:osa:ref:description:data_types#OST_MSG|OST_MSG]]##)
|}
=== Returns: ===
{| class = "fpl"
|-
|//''bEventError''//
|If queue is not free then ##[[en:osa:ref:allservices:OS_IsEventError|OS_IsEventError]]## will return **true**
|}
=== Example: ===
OST_QUEUE queue;
void Task (void)
{
static char Data[10];
for (;;) {
/*...*/
OS_Queue_Send_Now (queue, Data);
/*...*/
}
}
=== Old style name ===
**OS_SendQMsgNoWait**\\
=== See also ===
* [[en:osa:ref:allservices:OS_Queue_Create|OS_Queue_Create]]
* [[en:osa:ref:allservices:OS_Queue_Send|OS_Queue_Send]]
* [[en:osa:ref:allservices:OS_Queue_Send_TO|OS_Queue_Send_TO]]
* [[en:osa:ref:allservices:OS_Queue_Check|OS_Queue_Check]]
* [[en:osa:ref:allservices:OS_Queue_IsFull|OS_Queue_IsFull]]
* [[en:osa:ref:allservices:OS_Queue_Wait|OS_Queue_Wait]]
* [[en:osa:ref:allservices:OS_Queue_Wait_TO|OS_Queue_Wait_TO]]
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~