amicommon: make AThreads call the thread init/exit chain

git-svn-id: trunk@30992 -
This commit is contained in:
Károly Balogh 2015-06-06 19:52:13 +00:00
parent 5eea4b2846
commit 57f8922448

View File

@ -460,7 +460,9 @@ begin
if not exitSuspend then
begin
InitThread(threadInfo^.stackLen);
DoThreadInitProcChain;
threadInfo^.exitCode:=Pointer(threadInfo^.f(threadInfo^.p));
DoThreadExitProcChain;
DoneThread;
end;