mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 07:48:59 +02:00
* Remove thread range
This commit is contained in:
parent
b2adae02ca
commit
1affbdc510
@ -193,14 +193,13 @@ Type
|
||||
public
|
||||
Memory : TJSWebAssemblyMemory;
|
||||
Module : TJSWebAssemblyModule;
|
||||
ThreadRangeStart : NativeInt;
|
||||
end;
|
||||
|
||||
{ TWorkerLoadCommandHelper }
|
||||
|
||||
TWorkerLoadCommandHelper = class helper for TWorkerLoadCommand
|
||||
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;
|
||||
|
||||
|
||||
@ -379,12 +378,10 @@ begin
|
||||
Result:=cmdLoad;
|
||||
end;
|
||||
|
||||
class function TWorkerLoadCommandHelper.Create(aStartThreadIdRange: integer;
|
||||
aModule: TJSWebAssemblyModule; aMemory: TJSWebAssemblyMemory
|
||||
class function TWorkerLoadCommandHelper.Create(aModule: TJSWebAssemblyModule; aMemory: TJSWebAssemblyMemory
|
||||
): TWorkerLoadCommand;
|
||||
begin
|
||||
Result:=TWorkerLoadCommand(TWorkerCommand.NewWorker(CommandName));
|
||||
Result.ThreadRangeStart:=aStartThreadIdRange;
|
||||
Result.Memory:=aMemory;
|
||||
Result.Module:=aModule;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user