瀏覽代碼

amicommon: make AThreads call the thread init/exit chain

git-svn-id: trunk@30992 -
Károly Balogh 10 年之前
父節點
當前提交
57f8922448
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/amicommon/athreads.pp

+ 2 - 0
rtl/amicommon/athreads.pp

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