mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 15:49:16 +02:00
rtl/objpas/classes/classes.inc, TThread:
* Synchronize: fill the syncentry using the correct size git-svn-id: trunk@33879 -
This commit is contained in:
parent
20807f4148
commit
dc5d9c7001
@ -342,7 +342,7 @@ class procedure TThread.Synchronize(AThread: TThread; AMethod: TThreadMethod);
|
|||||||
if not Assigned(AThread) then begin
|
if not Assigned(AThread) then begin
|
||||||
{ use a local synchronize event }
|
{ use a local synchronize event }
|
||||||
New(syncentry);
|
New(syncentry);
|
||||||
FillChar(syncentry^, SizeOf(syncentry), 0);
|
FillChar(syncentry^, SizeOf(TThreadQueueEntry), 0);
|
||||||
syncentry^.ThreadID := GetCurrentThreadID;
|
syncentry^.ThreadID := GetCurrentThreadID;
|
||||||
syncentry^.SyncEvent := RtlEventCreate;
|
syncentry^.SyncEvent := RtlEventCreate;
|
||||||
end else begin
|
end else begin
|
||||||
|
Loading…
Reference in New Issue
Block a user