FEXCore: Move two functions to the frontend

Only used in the frontend and is OS specific.
This commit is contained in:
Ryan Houdek committed 2026-01-26 20:11:36 -08:00
1 parent 1b18f85e42
commit a8bee07d8f
5 files changed
+22 -36

No files matched your search

-21
View File
@@ -5,10 +5,6 @@
#include <pthread.h>
#include <unistd.h>
#ifndef _WIN32
#include <sys/signal.h>
#include <sys/syscall.h>
#endif
namespace FEXCore::Threads {
static fextl::unique_ptr<FEXCore::Threads::Thread> CreateThread_Default(ThreadFunc Func, void* Arg) {
@@ -35,21 +31,4 @@ void FEXCore::Threads::Thread::CleanupAfterFork() {
void FEXCore::Threads::Thread::SetInternalPointers(const Pointers& _Ptrs) {
Ptrs = _Ptrs;
}
uint64_t SetSignalMask(uint64_t Mask) {
#ifndef _WIN32
::syscall(SYS_rt_sigprocmask, SIG_SETMASK, &Mask, &Mask, 8);
return Mask;
#else
return 0;
#endif
}
void SetThreadName(const char* name) {
#ifndef _WIN32
pthread_setname_np(pthread_self(), name);
#else
// TODO:
#endif
}
} // namespace FEXCore::Threads