Put a message to a message port
Source position: exec.pas line 1262
procedure PutMsg( |
port: pMsgPort; |
message: pMessage |
); |
port |
|
A pointer to a message port |
message |
|
A pointer to a message |
This function attaches a message to the end of a given message port. It provides a fast, non-copying message sending mechanism.
Messages can be attached to only one port at a time. The message body can be of any size or form. Because messages are not copied, cooperating tasks share the same message memory. The sender task must not recycle the message until it has been replied by the receiver. Of course this depends on the message handling conventions setup by the involved tasks. If the ReplyPort field is non-zero, when the message is replied by the receiver, it will be sent back to that port.
|
Get next message from message port |
|
|
Put a message to its reply port |