Navigation bar
  Start Previous page
 197 of 283 
Next page End 192 193 194 195 196 197 198 199 200 201 202  

188
PutQueueByte
Type
Subroutine
Invocation
PutQueueByte(queue, val)
Parameter
Method
Type
Description
queue
ByRef
array of Byte
The queue to which to write data.
val
ByVal
Byte
The byte value to be written to the queue.
Discussion
This routine writes the given byte value to the specified queue.  If there is insufficient space in the queue,
the calling task will suspend until space becomes available.  This means that if data is never taken out of
the queue thus making room for additional data, the process will never complete.
Note that before any queue operations are performed, the queue data structure must be initialized.  See
the discussion of OpenQueue() for more details.
Example
Dim outQueue(1 to 40) as Byte
Call OpenQueue(outQueue, SizeOf(outQueue))
Call PutQueueByte(outQueue, &H55)
Compatibility
This routine is not available in BasicX compatibility mode.
See Also
Previous page Top Next page