Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

Enqueue

Insert or append node to a system list

Declaration

Source position: exec.pas line 1891

procedure Enqueue(

  list: PList;

  node: PNode

);

Arguments

list

  

A pointer to the system list header

node

  

The node to enqueue. This must be a full featured node with type, priority and name fields.

Description

Insert or append a node into a system list. The insert is performed based on the node priority. It will keep the list properly sorted. New nodes will be inserted in front of the first node with a lower priority. Hence a FIFO queue for nodes of equal priority

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

Exec.ExecInsert

  

Insert a node into a 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