Unit 'EXEC' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

CreateMsgPort

Create a new message port

Declaration

Source position: exec.pas line 1220

function CreateMsgPort: pMsgPort;

Function result

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

Description

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

DeleteMsgPort

  

Free a message port


Documentation generated on: 2021-07-30