* don't detach thread when finished, but pthread_exit it

(so it can be joined)

git-svn-id: trunk@184 -
This commit is contained in:
Jonas Maebe 2005-06-03 21:05:14 +00:00
parent 6a36b62b02
commit f1a2ef1db2

View File

@ -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;