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


Create a new message port


Source position: exec.pas line 1319

function CreateMsgPort: PMsgPort;

Function result

A pointer to the fresh allocted and initialized MsgPort or nil if failed.


Allocates and initializes a new message port. The message list of the new port will be prepared for use (via NewList). A signal bit will be allocated, and the port will be set to signal your task when a message arrives (PA_SIGNAL).

You must use DeleteMsgPort() to delete ports created with this function!

See also



Free a message port

Documentation generated on: 2017-01-10