[Overview][Types][Classes][Index] |
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 value in AQueueDepth is passed as an argument to the Grow method to allocate the internal storage for the 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.
|
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. |
Version 4.0 | Generated 2025-05-03 | Home |