EnqueueYou can use the
Enqueueprocedure to add elements directly to an operating-system queue or a queue that you create.
PROCEDURE Enqueue (qElement: QElemPtr; qHeader: QHdrPtr);
- A pointer to the queue element to add to a queue.
- A pointer to a queue header.
Enqueueprocedure adds the queue element specified by qElement parameter to the end of the queue specified by the qHeader parameter. The specified queue header is updated to reflect the new queue element.
SPECIAL CONSIDERATIONSBecause interrupt routines are likely to manipulate operating-system queues, interrupts are disabled for a short time while the specified queue is updated. You can call the
Enqueueprocedure at interrupt time. Whenever possible, use the installation routines listed in Table 6-2 on page 6-10 instead of the
ASSEMBLY-LANGUAGE INFORMATIONThe registers on entry and exit for the
Registers on entry A0 Pointer to the queue element to be added A1 Pointer to the queue header
Registers on exit A1 Pointer to the queue header
SEE ALSOFor a description of the
QElemrecord, see page 6-14; for a description of the
QHdrrecord, see page 6-13.