QueWrite
Writes an integer and string onto the end of a queue. The integer and string have no meaning to the queue system, they are just passed from QueWrite() to QueRead(). Queue data is written to the end of the queue. When the data is later read from the queue, it is returned on a first-in-first-out basis.
This function is a blocking function. It will block the calling Cicode task until the operation is complete.
Syntax
QueWrite(hQue, Type, Str)
hQue:
The queue handle, returned from the QueOpen() function. The queue handle identifies the table where all data on the associated queue is stored.
Type:
The integer to put into the queue.
Str:
The string to put into the queue.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
QueClose, QueLength, QueOpen, QueRead, QuePeek
Example
QueWrite(hQue,2,"Hello there");
QueWrite(hQue,4,"Help");
See Also