Unit 'LazCollections' Package
[Overview][Types][Classes][Index] [#lazutils]

TLazThreadedQueue.create

Constructor for the class instance.

Declaration

Source position: lazcollections.pas line 107

public constructor TLazThreadedQueue.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

TLazThreadedQueue.FifoQueue

  

Provides access to the TLazTypedFifoQueue instance used in the class.

TLazThreadedQueue.CreateFifoQueue

  

Creates the TLazTypedFifoQueue instance used in the class.

TLazThreadedQueue.QueueSize

  

Number of storage slots for items in the queue.

TLazThreadedQueue.Grow

  

Expands (or shrinks) the allocated storage for the queue by the specified size.

TLazThreadedQueue.PushItem

  

Adds the specified item to the queue.

TLazThreadedQueue.PopItem

  

Pops the next item from the queue.

TLazThreadedQueue.Destroy

  

Destructor for the class instance.

TLazFifoQueue

  

Implements a First-In-First-Out queue for entries using a generic item type.


Version 4.4 Generated 2025-11-08 Home