Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTQUE

CTQUE_Get
Description
Returns the next available queue item (in FIFO order). This effectively removes the item from the queue; it can no longer be retrieved.

Prototype

			     DCTQUE_Get...
     D                 PR            10I 0
     D@This                            *   Value
     D@Value                           *   Value
     D@Bytes                         10I 0 Value
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a queue instance. This pointer MUST be obtained through a call to CTQUE_Constructor.
@Value
TypePointer (*)
Passing ModeValue
DescriptionThe address of a buffer where the queue item is to be copied.
@Bytes
Type10I 0
Passing ModeValue
DescriptionThe size in bytes of the buffer where the queue value is to be copied.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The queue item has been copied successfully. Also, the item is no longer in the queue.
CS_FAILURE1The item could not be copied in the buffer and the item was not removed from the queue.