Ignore:
Timestamp:
Apr 8, 2022, 9:43:55 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Use Generics.Collection instead of fgl for better Delphi compatibility.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UThreading.pas

    r127 r128  
    44
    55uses
    6   Classes, SysUtils, Forms, fgl, SyncObjs;
     6  Classes, SysUtils, Forms, Generics.Collections, SyncObjs;
    77
    88type
     
    9999  { TThreadList }
    100100
    101   TThreadList = class(TFPGObjectList<TVirtualThread>)
     101  TThreadList = class(TObjectList<TVirtualThread>)
    102102    function FindById(Id: TThreadID): TVirtualThread;
    103103    constructor Create; virtual;
     
    358358ThreadListLock := TCriticalSection.Create;
    359359ThreadList := TThreadList.Create;
    360 ThreadList.FreeObjects := False;
     360ThreadList.OwnsObjects := False;
    361361
    362362finalization
Note: See TracChangeset for help on using the changeset viewer.