mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
+ WebAssembly threads: initialize the ThreadId threadvar for the main thread
This commit is contained in:
parent
13fbc876e0
commit
02867fe918
@ -132,6 +132,7 @@ begin
|
||||
GlobalIsMainThread:=1;
|
||||
GlobalIsWorkerThread:=0;
|
||||
GlobalCurrentThread:=@MainThread;
|
||||
ThreadId:=@MainThread;
|
||||
{$IFDEF FPC_WASM_MAIN_THREAD_CAN_WAIT}
|
||||
GlobalIsThreadBlockable:=1;
|
||||
{$ELSE FPC_WASM_MAIN_THREAD_CAN_WAIT}
|
||||
|
Loading…
Reference in New Issue
Block a user