Sign in Join
FPDoc Onlineexperiment

TIPCServerMsgQueue.Push procedure

Member of TIPCServerMsgQueuepublicIn unit SimpleIPC

Add a new message to the queue.

Declaration

pascal
procedure Push(AItem: TIPCServerMsg)

Arguments

AItem

New message to add to the queue.

Description

Push verifies if the message can be added to the queue (discarding old messages depending on the setting of MaxAction) and adds the message AItem to the queue.

The message AItem is owned by the queue until it is popped off the queue.

Errors

If the maximum queue length is reached, and the MaxAction is set to ipcmoaError, an exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.