cre_mbx
acre_mbx
ER cre_mbx (ID mbxid, T_CMBX *pk_cmbx );
ER_ID acre_mbx ( T_CMBX *pk_cmbx );
typedef struct t_cmbx { ATR mbxatr; /*Mailbox attribute*/ PRI maxmpri; /*Maximum message priority*/ VP mprihd; /*For future expansion*/ } T_CMBX; |
The cre_mbx creates a mailbox with mailbox ID indicated by mbxid according to the content of pk_cmbx. The acre_mbx creates a mailbox according to the content of pk_cmbx, and returns the created mailbox ID.
mbxatr := ( ( TA_TFIFO || TA_TPRI | ( TA_MFIFO || TA_MPRI ) )
- TA_TPRI ( = 0x0001)
Task wait queue is managed in task current priority order. Among tasks with the same priority, they are queued in FIFO order.
Task wait queue is managed in task current priority order. Among tasks with the same priority, they are queued in FIFO order.
- TA_MPRI ( = 0x0002)
Message queue is managed in message priority order. Among messages with the same priority, they are queued in FIFO order.
Message queue is managed in message priority order. Among messages with the same priority, they are queued in FIFO order.
2 ) Maximum message priority (maxmpri)
When TA_MPRI is specified for mbxatr, the range of message priority which can be used is from 1 to maxmpri. Ranges of the value that can be specified are from 1 to TMAX_MPRI.
When TA_MPRI is specified for mbxatr, the range of message priority which can be used is from 1 to maxmpri. Ranges of the value that can be specified are from 1 to TMAX_MPRI.