mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
touch: add new commands
This commit is contained in:
@@ -1623,7 +1623,8 @@ void CThreadSpinRWLock::UnlockWrite()
|
||||
#if defined(_X360)
|
||||
// X360TBD: Serious Perf implications, not yet. __sync();
|
||||
#endif
|
||||
ThreadInterlockedExchange64( (int64 *)&m_lockInfo, *((int64 *)&newValue) );
|
||||
int64 val; memcpy( &val, &newValue, sizeof( val ) );
|
||||
ThreadInterlockedExchange64( (int64 *)&m_lockInfo, val );
|
||||
m_nWriters--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user