System.Generics.Collections.TThreadedQueue.Create
Delphi
constructor Create(AQueueDepth: Integer = 10; PushTimeout: Cardinal = INFINITE; PopTimeout: Cardinal = INFINITE);
C++
__fastcall TThreadedQueue__1(int AQueueDepth, unsigned PushTimeout, unsigned PopTimeout);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| constructor | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TThreadedQueue |
Description
Creates an instance of TThreadedQueue.
Call Create to create and initialize an instance of TThreadedQueue.
AQueueDepth is the length of the queue, which is by default set to 10.
PushTimeout is the timeout when a new element is pushed, which is by default set to INFINITE.
PopTimeout is the timeout when a new element is popped, which is by default set to INFINITE.