+ WebAssembly threads: set IsMultiThread to true in WasiBeginThread

This commit is contained in:
Nikolay Nikolov 2024-08-19 08:36:45 +03:00
parent 0f39633acc
commit 200fbf64a1

View File

@ -411,6 +411,7 @@ Var
begin
{$IFDEF DEBUGWASMTHREADS}DebugWriteln('WasiBeginThread(sa: '+IntToStr(PtrUint(Sa))+',ss: '+IntToStr(PtrUint(StackSize))+',TF: '+IntToStr(PtrUint(ThreadFunction))+',Arg: '+IntToStr(PtrUint(P))+',fl: '+IntToStr(PtrUint(CreationFlags))+',ID: '+IntToStr(PtrUint(ThreadID))+')');{$ENDIF}
IsMultiThread:=true;
New(T);
T^.StackBlock:=nil;
T^.TLSBlock:=nil;