MBX Module
Application Program Interface
2-195
2.14
MBX Module
The MBX module is the mailbox manager.
Functions
❏
MBX_create. Create a mailbox
❏
MBX_delete. Delete a mailbox
❏
MBX_pend. Wait for a message from mailbox
❏
MBX_post. Post a message to mailbox
Constants, Types,
and Structures
typedef struct MBX_Obj *MBX_Handle;
/* handle for mailbox object */
struct MBX_Attrs { /* mailbox attributes */
Int segid;
};
MBX_Attrs MBX_ATTRS = {/* default attribute values */
0,
};
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the MBX
Manager Properties and MBX Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Description
The MBX module makes available a set of functions that manipulate
mailbox objects accessed through handles of type MBX_Handle.
Mailboxes can hold up to the number of messages specified by the
Mailbox Length property in Tconf.
Name
Type
Default
OBJMEMSEG Reference
prog.get("DARAM")
Name
Type
Default
comment
String
"<add comments here>"
messageSize
Int16
1
length
Int16
1
elementSeg
Reference
prog.get("DARAM")