Changeset 145 for trunk/Packages/Common/Threading.pas
- Timestamp:
- Jun 5, 2023, 6:44:57 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Threading.pas
r144 r145 1 unit UThreading;1 unit Threading; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, Forms, fgl, SyncObjs;6 Classes, SysUtils, Forms, Generics.Collections, SyncObjs; 7 7 8 8 type 9 9 TExceptionEvent = procedure (Sender: TObject; E: Exception) of object; 10 10 TMethodCall = procedure of object; 11 12 11 13 12 { TVirtualThread } … … 100 99 { TThreadList } 101 100 102 TThreadList = class(T FPGObjectList<TVirtualThread>)101 TThreadList = class(TObjectList<TVirtualThread>) 103 102 function FindById(Id: TThreadID): TVirtualThread; 104 103 constructor Create; virtual; … … 293 292 end; 294 293 FThread.Free; 295 inherited Destroy;294 inherited; 296 295 end; 297 296 … … 359 358 ThreadListLock := TCriticalSection.Create; 360 359 ThreadList := TThreadList.Create; 361 ThreadList. FreeObjects := False;360 ThreadList.OwnsObjects := False; 362 361 363 362 finalization … … 367 366 368 367 end. 369
Note:
See TracChangeset
for help on using the changeset viewer.