OS_IPC_WAIT_IF_EMPTY Definition

This flag may be specified during IPC object creation in the Mode parameter of the osCreateStream, osCreateQueue, or osCreateMailbox functions. When this flag is set and a task performs a read (pend) operation on an object with an empty buffer, the task will enter a waiting state until data becomes available. This flag can be used in conjunction with OS_IPC_DIRECT_READ_WRITE to ensure that data is transferred directly from the providing task to the receiving task, bypassing the object's internal buffer.

SpaceShadow documentation