mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-11 11:19:57 +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;
|
function TThread.WaitFor: Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
WaitFor:=WaitForThreadTerminate(FThreadID,0);
|
WaitFor:=WaitForThreadTerminate(FThreadID,-1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$else FPC_WASM_THREADS}
|
{$else FPC_WASM_THREADS}
|
||||||
|
Loading…
Reference in New Issue
Block a user