mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 09:39:11 +02:00
* WebAssembly threads: fix TThread.WaitFor (use -1 instead of 0 to signal infinite timeout)
This commit is contained in:
parent
6be3a42a2f
commit
74a4550ff0
@ -216,7 +216,7 @@ end;
|
||||
function TThread.WaitFor: Integer;
|
||||
|
||||
begin
|
||||
WaitFor:=WaitForThreadTerminate(FThreadID,0);
|
||||
WaitFor:=WaitForThreadTerminate(FThreadID,-1);
|
||||
end;
|
||||
|
||||
{$else FPC_WASM_THREADS}
|
||||
|
Loading…
Reference in New Issue
Block a user