diff --git a/src/common/memory_arena.cpp b/src/common/memory_arena.cpp index 02d7b68f6..19b225c47 100644 --- a/src/common/memory_arena.cpp +++ b/src/common/memory_arena.cpp @@ -106,7 +106,7 @@ bool MemoryArena::IsValid() const static std::string GetFileMappingName() { #if defined(_WIN32) - const unsigned pid = GetCurrentThreadId(); + const unsigned pid = GetCurrentProcessId(); #elif defined(__ANDROID__) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) const unsigned pid = static_cast(getpid()); #else