mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:49:23 +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}
|
{$endif DEBUG_MT}
|
||||||
ThreadMain:=pointer(ti.f(ti.p));
|
ThreadMain:=pointer(ti.f(ti.p));
|
||||||
DoneThread;
|
DoneThread;
|
||||||
pthread_detach(pthread_t(pthread_self()));
|
pthread_exit(nil);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user