mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
* 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:
parent
6a36b62b02
commit
f1a2ef1db2
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user