mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
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:
1 parent
abc37ec35e
commit
bf4b8d246a
1 file changed
+1
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user