|
@@ -190,6 +190,7 @@ Type
|
|
TWorkerThreadControllerApplication = class(TWorkerWASIHostApplication)
|
|
TWorkerThreadControllerApplication = class(TWorkerWASIHostApplication)
|
|
Private
|
|
Private
|
|
FThreadSupport : TThreadController;
|
|
FThreadSupport : TThreadController;
|
|
|
|
+ function GetThreadHost: TWASIThreadControllerHost;
|
|
Protected
|
|
Protected
|
|
function CreateThreadSupport(aEnv: TPas2JSWASIEnvironment): TThreadController; virtual;
|
|
function CreateThreadSupport(aEnv: TPas2JSWASIEnvironment): TThreadController; virtual;
|
|
procedure HandleConsoleWrite(Sender: TObject; aOutput: string); virtual;
|
|
procedure HandleConsoleWrite(Sender: TObject; aOutput: string); virtual;
|
|
@@ -201,6 +202,8 @@ Type
|
|
Public
|
|
Public
|
|
procedure ShowException(aError: Exception); override;
|
|
procedure ShowException(aError: Exception); override;
|
|
property ThreadSupport : TThreadController Read FThreadSupport;
|
|
property ThreadSupport : TThreadController Read FThreadSupport;
|
|
|
|
+ property ThreadHost : TWASIThreadControllerHost read GetThreadHost;
|
|
|
|
+
|
|
end;
|
|
end;
|
|
|
|
|
|
function GetJSClassName(aObj : TJSObject) : string;
|
|
function GetJSClassName(aObj : TJSObject) : string;
|
|
@@ -875,6 +878,11 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TWorkerThreadControllerApplication.GetThreadHost: TWASIThreadControllerHost;
|
|
|
|
+begin
|
|
|
|
+ Result:=(Host as TWASIThreadControllerHost)
|
|
|
|
+end;
|
|
|
|
+
|
|
function TWorkerThreadControllerApplication.CreateThreadSupport(aEnv : TPas2JSWASIEnvironment) : TThreadController;
|
|
function TWorkerThreadControllerApplication.CreateThreadSupport(aEnv : TPas2JSWASIEnvironment) : TThreadController;
|
|
|
|
|
|
begin
|
|
begin
|