MSGQ_isLocalQueue
Application Program Interface
2-249
C Interface
Syntax
flag = MSGQ_isLocalQueue(msgqQueue);
Parameters
MSGQ_Queue
msgqQueue;
/* Message queue */
Return Value
Bool
flag;
/* status */
Reentrant
yes
Description
This API determines whether the message queue is local (that is, opened
on this processor) or remote (that is, opened on a different processor).
If the message queue is local, the flag returned is TRUE. Otherwise, it is
FALSE.
Constraints and
Calling Context
❏
This function can be called from a HWI, SWI or TSK.
Example
flag = MSGQ_isLocalQueue(readerMsgQueue);
if (flag == TRUE) {
/* Message queue is local */
return;
}
See Also
MSGQ_isLocalQueue
Return whether message queue is local or on other processor