Constructor for the class instance.
Source position: lazcollections.pas line 107
public constructor TLazThreadedQueue.create( |
AQueueDepth: Integer = 10; |
PushTimeout: Cardinal = INFINITE; |
PopTimeout: Cardinal = INFINITE |
); |
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. |
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.
|
Provides access to the TLazTypedFifoQueue instance used in the class. |
|
|
Creates the TLazTypedFifoQueue instance used in the class. |
|
|
Number of storage slots for items in the queue. |
|
|
Expands (or shrinks) the allocated storage for the queue by the specified size. |
|
|
Adds the specified item to the queue. |
|
|
Pops the next item from the queue. |
|
|
Destructor for the class instance. |
|
|
Implements a First-In-First-Out queue for entries using a generic item type. |
| Version 4.4 | Generated 2025-11-08 | Home |