* Remove thread range

This commit is contained in:
Michael Van Canneyt 2025-02-12 09:18:52 +01:00
parent b2adae02ca
commit 1affbdc510

View File

@ -193,14 +193,13 @@ Type
public public
Memory : TJSWebAssemblyMemory; Memory : TJSWebAssemblyMemory;
Module : TJSWebAssemblyModule; Module : TJSWebAssemblyModule;
ThreadRangeStart : NativeInt;
end; end;
{ TWorkerLoadCommandHelper } { TWorkerLoadCommandHelper }
TWorkerLoadCommandHelper = class helper for TWorkerLoadCommand TWorkerLoadCommandHelper = class helper for TWorkerLoadCommand
Class function CommandName : string; static; Class function CommandName : string; static;
Class function Create(aStartThreadIdRange : integer; aModule : TJSWebAssemblyModule; aMemory : TJSWebAssemblyMemory): TWorkerLoadCommand; static;reintroduce; Class function Create(aModule : TJSWebAssemblyModule; aMemory : TJSWebAssemblyMemory): TWorkerLoadCommand; static;reintroduce;
end; end;
@ -379,12 +378,10 @@ begin
Result:=cmdLoad; Result:=cmdLoad;
end; end;
class function TWorkerLoadCommandHelper.Create(aStartThreadIdRange: integer; class function TWorkerLoadCommandHelper.Create(aModule: TJSWebAssemblyModule; aMemory: TJSWebAssemblyMemory
aModule: TJSWebAssemblyModule; aMemory: TJSWebAssemblyMemory
): TWorkerLoadCommand; ): TWorkerLoadCommand;
begin begin
Result:=TWorkerLoadCommand(TWorkerCommand.NewWorker(CommandName)); Result:=TWorkerLoadCommand(TWorkerCommand.NewWorker(CommandName));
Result.ThreadRangeStart:=aStartThreadIdRange;
Result.Memory:=aMemory; Result.Memory:=aMemory;
Result.Module:=aModule; Result.Module:=aModule;
end; end;