mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 22:28:06 +02:00
* use an empty TThread implementation in rtl/wasi/tthread.inc, in case
FPC_WASM_THREADS is not defined
This commit is contained in:
parent
f6002d8078
commit
6d79054cff
@ -15,6 +15,7 @@
|
||||
{****************************************************************************}
|
||||
|
||||
|
||||
{$ifdef FPC_WASM_THREADS}
|
||||
procedure TThread.CallOnTerminate;
|
||||
|
||||
begin
|
||||
@ -218,4 +219,67 @@ begin
|
||||
WaitFor:=WaitForThreadTerminate(FThreadID,0);
|
||||
end;
|
||||
|
||||
{$else FPC_WASM_THREADS}
|
||||
procedure TThread.CallOnTerminate;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
function TThread.GetPriority: TThreadPriority;
|
||||
|
||||
begin
|
||||
GetPriority:=tpNormal;
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.SetPriority(Value: TThreadPriority);
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.SetSuspended(Value: Boolean);
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.DoTerminate;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.SysCreate(CreateSuspended: Boolean; const StackSize: SizeUInt);
|
||||
|
||||
begin
|
||||
{IsMultiThread := TRUE; }
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.SysDestroy;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.Resume;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
procedure TThread.Suspend;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
function TThread.WaitFor: Integer;
|
||||
|
||||
begin
|
||||
WaitFor:=0;
|
||||
end;
|
||||
{$endif FPC_WASM_THREADS}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user