touch: add new commands

This commit is contained in:
nillerusr
2021-11-16 23:46:29 +03:00
parent f7cdca7ad2
commit d2f3cc44db
138 changed files with 46564 additions and 1231 deletions

View File

@@ -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--;
}