mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
fix building in linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3741 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -74,14 +74,14 @@ namespace Common
|
|||||||
|
|
||||||
// MemFence: Neither the compiler nor the CPU can reorder memory accesses
|
// MemFence: Neither the compiler nor the CPU can reorder memory accesses
|
||||||
// beyond this barrier.
|
// beyond this barrier.
|
||||||
|
#ifdef _WIN32
|
||||||
__forceinline void MemFence()
|
__forceinline void MemFence()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
|
||||||
MemoryBarrier();
|
MemoryBarrier();
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
// TODO: UNIX experts, please implement the memory fence.
|
// TODO: UNIX experts, please implement the memory fence.
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
class CriticalSection
|
class CriticalSection
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user