Get rid of locks added InterlockedExchangeAdd function in thread.cpp

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@748 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-10-02 21:40:20 +00:00
parent 65f8c4bca1
commit 3d6d64c632
4 changed files with 19 additions and 6 deletions

View File

@ -344,6 +344,17 @@ void Event::Wait()
is_set_ = false;
pthread_mutex_unlock(&mutex_);
}
int InterlockedExchangeAdd( int* Addend, int Increment )
{
#if defined(__GNUC__) && defined (__GNUC_MINOR__) && ((4 < __GNUC__) || (4 == __GNUC__ && 1 <= __GNUC_MINOR__))
return __sync_add_and_fetch(Addend, Increment);
#else
// TODO support old gcc
#endif
}
#endif