Creates a small message.
Item CreateSmallMsg( const char *name, uint8 pri, Item mp )
This convenience procedure creates the item for a small message (a message that can contain up to eight bytes of data). You can use this procedure in place of CreateItem()
to create the item.
To create a standard message (a message in which any data to be communicated to the receiving task is contained in a data block allocated by the sending task), use CreateMsg()
. To create a buffered message (a message that includes an internal buffer for sending data to the receiving task), use CreateBufferedMsg()
.
The procedure returns the item number of the message that was created or an error code if an error occurs.
Convenience call implemented in clib.lib V20.
The same message item can be resent any number of times. When you are finished with a message item, use DeleteMsg()
to delete it.
You can use FindNamedItem()
to find a message by name. When naming messages, you should assign unique names whenever possible.
CreateMsg
(), CreateMsgPort(), CreateBufferedMsg(), DeleteMsg(), DeleteMsgPort(), SendMsg()