mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
DirtySDK (EA's Dirty Sockets library) will be used for the LiveAPI implementation, and depends on: EABase, EAThread.
27 lines
530 B
C++
27 lines
530 B
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (c) Electronic Arts Inc. All rights reserved.
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "TestThread.h"
|
|
#include <EATest/EATest.h>
|
|
#include <eathread/eathread_sync.h>
|
|
#include <eathread/eathread.h>
|
|
|
|
|
|
int TestThreadSync()
|
|
{
|
|
using namespace EA::Thread;
|
|
|
|
int nErrorCount(0);
|
|
|
|
EAReadBarrier();
|
|
EAWriteBarrier();
|
|
EAReadWriteBarrier();
|
|
EACompilerMemoryBarrier();
|
|
|
|
return nErrorCount;
|
|
}
|
|
|
|
|
|
|