LazUtils: Fixed queue depth on creation of TLazThreadedQueue, patch by Pascal Bergeron, issue #41848.

Grow method is already called in the TLazFifoQueue's constructor, which
is called by TLazThreadedQueue.
This commit is contained in:
Maxim Ganetsky 2025-09-30 00:44:34 +03:00
parent 7e043bcf54
commit 450add36b3

View File

@ -401,7 +401,6 @@ constructor TLazThreadedQueue.create(AQueueDepth: Integer; PushTimeout: cardinal
begin
FMonitor:=TLazMonitor.create;
FFifoQueue := CreateFifoQueue(AQueueDepth);
Grow(AQueueDepth);
FHasRoomEvent:=RTLEventCreate;
RTLeventSetEvent(FHasRoomEvent);
FHasItemEvent:=RTLEventCreate;