[Overview][Resource strings][Constants][Types][Classes][Variables][Index] |
Add a new message to the queue
Source position: simpleipc.pp line 75
public procedure TIPCServerMsgQueue.Push( |
AItem: TIPCServerMsg |
); |
AItem |
|
New message to add to the queue |
Push verifies if the message can be added to the queue (discarding old messages depending on the setting of TIPCServerMsgQueue.MaxAction) and adds the message AItem to the queue.
The message AItem is owned by the queue until it is popped off the queue.
If the maximum queue length is reached, and the MaxAction is set to ipcmoaError, an exception will be raised.
|
Maximum number of messages in the queue, 0 for unlimited |
|
|
Action to take when the number of messages will exceed MaxCount. |
|
|
Remove the oldest message from the queue |