TLazThreadedQueue.create constructor
Constructor for the class instance.
Declaration
constructor create(AQueueDepth: Integer=10;
PushTimeout: Cardinal=INFINITE;
PopTimeout: Cardinal=INFINITE)Arguments
AQueueDepth | Indicates the maximum number of items that can be stored in the thread-safe queue. |
PushTimeout | Number of ticks (milliseconds) to wait for successful completion of an enqueue request. |
PopTimeout | Number of ticks (milliseconds) to wait for successful completion of a dequeue request. |
Description
Create is the constructor for the class instance. Create allocates
internal resources used to implement the thread-safe queue, and sets the
default values for its properties.
The CreateFifoQueue method is called to initialize the internal
First-In-First-Out queue storage used in the FifoQueue property.
AQueueDepth contains the storage size allocated for the FIFO queue.
PushTimeout and
PopTimeout indicate the number of
milliseconds (or ticks) to wait for successful completion of enqueue or
dequeue requests, and are assigned as the default value for the corresponding
internal members in the class instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
