Threads: Simplify copying in SetInternalPointers

We can just use assignment here, which lets us also
remove <cstring> since this is the only usage of memcpy.
This commit is contained in:
Lioncache committed 2025-09-03 11:01:12 -04:00
1 parent abc37ec35e
commit bf4b8d246a
1 file changed
+1 -2
+1 -2
View File
@@ -3,7 +3,6 @@
#include <FEXCore/Utils/Threads.h>
#include <FEXCore/fextl/memory.h>
#include <cstring>
#include <pthread.h>
#include <unistd.h>
#ifndef _WIN32
@@ -34,7 +33,7 @@ void FEXCore::Threads::Thread::CleanupAfterFork() {
}
void FEXCore::Threads::Thread::SetInternalPointers(const Pointers& _Ptrs) {
memcpy(&Ptrs, &_Ptrs, sizeof(FEXCore::Threads::Pointers));
Ptrs = _Ptrs;
}
uint64_t SetSignalMask(uint64_t Mask) {