summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-12-10 00:27:20 -0500
committercomex <comexk@gmail.com>2013-12-10 16:20:52 -0500
commiteaacf10f7141caaff9f34221bee3a8e5ede636cb (patch)
treede6fe02659cd61503f6e3897465c5afe87e8ec5e /Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
parent2d8515c0cf754806dc38222c4461053e12df1194 (diff)
Fix an idiotic race condition when starting games in multiple Dolphin instances at the same time on Unix.
MemArena mmaps the emulated memory from a file in order to get the same mapping at multiple addresses. A file which, formerly, was located at a static filename: it was unlinked after creation, but the open did not use O_EXCL, so if two instances started up on the same system at just the right time, they would get the same memory. Naturally, this caused extremely mysterious crashes, but only in Netplay, where the game is automatically started when the client receives a broadcast from the server, so races are actually quite likely. And switch to shm_open, because it fits the bill better and avoids any issues with using /tmp.
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp')
0 files changed, 0 insertions, 0 deletions