Windows: add Thread implementation

So we can make a worker thread that the guest (hopefully) won't see.
This commit is contained in:
Pierre-Loup A. Griffais committed 2026-08-21 11:16:07 -07:00
1 parent efc5eaf9c7
commit c038bb5794
6 files changed
+131 -1

No files matched your search

+2
View File
@@ -36,6 +36,7 @@ $end_info$
#include "Common/Exception.h"
#include "Common/ImageTracker.h"
#include "Common/InvalidationTracker.h"
#include "Common/Threads.h"
#include "Common/OvercommitTracker.h"
#include "Common/TSOHandlerConfig.h"
#include "Common/CPUFeatures.h"
@@ -581,6 +582,7 @@ NTSTATUS ProcessInit() {
InitSyscalls();
FEX::Windows::InitCRTProcess();
FEX::Windows::SetupThreadHandlers();
const auto ExecutablePath = FEX::Windows::GetExecutableFilePath();
const auto ExecutableName = FEX::Windows::BaseName(ExecutablePath);
FEX::Config::LoadConfig(fextl::string {ExecutableName}, _environ, FEX::ReadPortabilityInformation());