* reverted r11671 because it breaks tthread.waitfor on unix

git-svn-id: trunk@11731 -
This commit is contained in:
Jonas Maebe 2008-09-08 21:10:38 +00:00
parent fb8ffb0b99
commit 4f5513466a

View File

@ -242,7 +242,8 @@ Type PINTRTLEvent = ^TINTRTLEvent;
writeln('Jumping to thread function');
{$endif DEBUG_MT}
ThreadMain:=pointer(ti.f(ti.p));
EndThread(0);
DoneThread;
pthread_exit(ThreadMain);
end;