소스 검색

* don't detach thread when finished, but pthread_exit it
(so it can be joined)

git-svn-id: trunk@184 -

Jonas Maebe 20 년 전
부모
커밋
f1a2ef1db2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/unix/cthreads.pp

+ 1 - 1
rtl/unix/cthreads.pp

@@ -192,7 +192,7 @@ Type  PINTRTLEvent = ^TINTRTLEvent;
 {$endif DEBUG_MT}
         ThreadMain:=pointer(ti.f(ti.p));
         DoneThread;
-        pthread_detach(pthread_t(pthread_self()));
+        pthread_exit(nil);
       end;