osQueuePost function
BOOL osQueuePost(
  HANDLE Handle,
  PVOID Buffer

Handle of queue object.


Pointer to buffer with a message to be written.

Return value:

TRUE on success or FALSE on failure. Use osGetLastError function to obtain extended error information.


Function stores a message at the end of queue. When queue is full, the function fails if OS_IPC_WAIT_IF_FULL mode flag has not been specified otherwise is waiting until the data is read. When function is waiting, a maximal number of messages is set to 0 and direct-read write is enabled (OS_IPC_DIRECT_READ_WRITE mode flag was specified during object creation), the data is sent directly from one task to another, without storing it in the buffer.

For more information about the queue see the queue objects section.

Function is available only, when the value of OS_USE_QUEUE and OS_QUEUE_POST_PEND_FUNC constants is set to 1.

SpaceShadow documentation