mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 08:00:50 +02:00
FEXCore: Move two functions to the frontend
Only used in the frontend and is OS specific.
This commit is contained in:
5 files changed
+22
-36
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user