mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Atomic operations library.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3775 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -72,18 +72,6 @@
|
||||
namespace Common
|
||||
{
|
||||
|
||||
// MemFence: Neither the compiler nor the CPU can reorder memory accesses
|
||||
// beyond this barrier.
|
||||
#ifdef _WIN32
|
||||
__forceinline void MemFence()
|
||||
{
|
||||
MemoryBarrier();
|
||||
}
|
||||
#else
|
||||
// TODO: UNIX experts, please implement the memory fence.
|
||||
void MemFence();
|
||||
#endif
|
||||
|
||||
class CriticalSection
|
||||
{
|
||||
#ifdef _WIN32
|
||||
@ -206,10 +194,6 @@ void SleepCurrentThread(int ms);
|
||||
|
||||
void SetCurrentThreadName(const char *name);
|
||||
|
||||
LONG SyncInterlockedExchangeAdd(LONG *Dest, LONG Val);
|
||||
LONG SyncInterlockedExchange(LONG *Dest, LONG Val);
|
||||
LONG SyncInterlockedIncrement(LONG *Dest);
|
||||
|
||||
} // namespace Common
|
||||
|
||||
#endif // _THREAD_H_
|
||||
|
Reference in New Issue
Block a user