mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 03:29:19 +02:00
amicommon: make AThreads call the thread init/exit chain
git-svn-id: trunk@30992 -
This commit is contained in:
parent
5eea4b2846
commit
57f8922448
@ -460,7 +460,9 @@ begin
|
|||||||
if not exitSuspend then
|
if not exitSuspend then
|
||||||
begin
|
begin
|
||||||
InitThread(threadInfo^.stackLen);
|
InitThread(threadInfo^.stackLen);
|
||||||
|
DoThreadInitProcChain;
|
||||||
threadInfo^.exitCode:=Pointer(threadInfo^.f(threadInfo^.p));
|
threadInfo^.exitCode:=Pointer(threadInfo^.f(threadInfo^.p));
|
||||||
|
DoThreadExitProcChain;
|
||||||
DoneThread;
|
DoneThread;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user