소스 검색

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;