Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

ExecInsert

Insert a node into a list

Declaration

Source position: exec.pas line 1250

procedure ExecInsert(

  List: PList;

  Node: PNode;

  Pred: PNode

);

Arguments

List

  

A pointer to the target list

Node

  

Node to insert

Pred

  

A node of the list after the new node will be inserted

Description

Insert a node into a system list after a given node. Insertion at the head of a list is possible by passing a nil value for listNode, though the AddHead() function is slightly faster for that special case. The original name Insert is colliding with the RTL Insert.

WARNING

This function does not arbitrate for access to the list. The calling task must be the owner of the involved list.

See also

AddHead

  

Insert a node at the head of a list

AddTail

  

Append node to tail of a list

Enqueue

  

Insert or append node to a system list

Remove

  

Remove a node from a list

RemHead

  

Remove the head node from a list

RemTail

  

Remove the tail node from a list


Documentation generated on: 2021-07-30