mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
MemoryArea: Use pid instead of thread id for mapping on Windows
This commit is contained in:
parent
ce460001d7
commit
dfd6766411
|
@ -106,7 +106,7 @@ bool MemoryArena::IsValid() const
|
||||||
static std::string GetFileMappingName()
|
static std::string GetFileMappingName()
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
const unsigned pid = GetCurrentThreadId();
|
const unsigned pid = GetCurrentProcessId();
|
||||||
#elif defined(__ANDROID__) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
#elif defined(__ANDROID__) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
const unsigned pid = static_cast<unsigned>(getpid());
|
const unsigned pid = static_cast<unsigned>(getpid());
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue