mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-28 01:37:20 +01:00
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:
parent
7e043bcf54
commit
450add36b3
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user