Files
FEX-Emu--FEX/Source/Tools/CommonTools/DummyHandlers.cpp
T
Ryan Houdek 348844a95b FEX: Create a CommonTools static library
Moves the dummy handlers over to this library. This will end up getting
used for more than the mingw test harness runner once the instruction
count CI is operational.
2023-08-09 02:27:13 -07:00

26 lines
741 B
C++

#include "DummyHandlers.h"
namespace FEX::DummyHandlers {
thread_local FEXCore::Core::InternalThreadState *TLSThread;
void DummySignalDelegator::RegisterTLSState(FEXCore::Core::InternalThreadState *Thread) {
TLSThread = Thread;
}
void DummySignalDelegator::UninstallTLSState(FEXCore::Core::InternalThreadState *Thread) {
TLSThread = nullptr;
}
FEXCore::Core::InternalThreadState *DummySignalDelegator::GetTLSThread() {
return TLSThread;
}
fextl::unique_ptr<FEXCore::HLE::SyscallHandler> CreateSyscallHandler() {
return fextl::make_unique<DummySyscallHandler>();
}
fextl::unique_ptr<FEX::DummyHandlers::DummySignalDelegator> CreateSignalDelegator() {
return fextl::make_unique<DummySignalDelegator>();
}
}