[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)


Put a message to a message port


Source position: exec.pas line 1269

procedure PutMsg(

  Port: PMsgPort;

  Message: PMessage





A pointer to a message port



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.

See also



Get next message from message port



Put a message to its reply port

Documentation generated on: 2017-01-10