Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTQUE

CTQUE_Put
Description
Inserts an item in the queue.

Prototype

			     DCTQUE_Put...
     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 that holds the item to be inserted in the queue.
@Bytes
TypePointer (*)
Passing ModeValue
DescriptionThe size in bytes of the item to be inserted in the queue instance.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The item has been inserted successfully.
CS_FAILURE1The item could not be inserted. The maximum number of items allowed in the queue has already been reached.