-
Notifications
You must be signed in to change notification settings - Fork 1
Enqueue
snayaksnayak edited this page May 14, 2013
·
2 revisions
NAME
Enqueue - insert or append node to a system queue
SYNOPSIS
Enqueue(list, node);
void Enqueue(struct List *, struct Node *);
FUNCTION
Insert or append a node into a system queue. 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. A FIFO queue for nodes of equal
priority gets created.
WARNING
This function does not arbitrate for access to the list. The
calling task must be the owner of the involved list.
INPUTS
list - a pointer to the system queue header
node - the node to enqueue. This must be a full featured list
with type, priority and name fields.
SEE ALSO
[[AddHead]], [[AddTail]], [[Insert]], [[Remove]], [[RemHead]], [[RemTail]]