mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Switch to Video_BeginField; hopefully fix or reduce some video stability problems by using Events.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3740 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -71,6 +71,18 @@
|
||||
|
||||
namespace Common
|
||||
{
|
||||
|
||||
// MemFence: Neither the compiler nor the CPU can reorder memory accesses
|
||||
// beyond this barrier.
|
||||
__forceinline void MemFence()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
MemoryBarrier();
|
||||
#else
|
||||
// TODO: UNIX experts, please implement the memory fence.
|
||||
#endif
|
||||
}
|
||||
|
||||
class CriticalSection
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
Reference in New Issue
Block a user