MSGQ_locate
Application Program Interface
2-251
typedef struct MSGQ_LocateAttrs {
Uns timeout;
} MSGQ_LocateAttrs;
The timeout is the maximum time a transport can block on a synchronous
locate in system clock ticks. The default attributes are as follows:
MSGQ_LocateAttrs MSGQ_LOCATEATTRS = {SYS_FOREVER};
If successful, this function returns SYS_OK. Otherwise, it returns
SYS_ENOTFOUND to indicate that it could not locate the specified
message queue.
Constraints and
Calling Context
❏
Cannot be called from main().
❏
Cannot be called in a SWI or HWI context.
Example
status = MSGQ_locate("reader", &readerMsgQueue, NULL);
if (status != SYS_OK) {
SYS_abort("Failed to locate reader message queue");
}
See Also