mirror of
https://github.com/libretro/pcsx2.git
synced 2025-03-04 23:48:42 +00:00
More fix for windows (extend previous commit)
This commit is contained in:
parent
4cf1b6068f
commit
6d4039cc85
@ -291,7 +291,7 @@ bool Threading::pxThread::Detach()
|
||||
{
|
||||
AffinityAssert_DisallowFromSelf(pxDiagSpot);
|
||||
|
||||
if( _InterlockedExchange( &m_detached, true ) ) return false;
|
||||
if( Threading::AtomicExchange( m_detached, true ) ) return false;
|
||||
pthread_detach( m_thread );
|
||||
return true;
|
||||
}
|
||||
@ -850,7 +850,7 @@ __fi void* Threading::_AtomicCompareExchangePointer(volatile uptr& target, uptr
|
||||
#ifdef _M_X86_64 // high-level atomic ops, please leave these 64 bit checks in place.
|
||||
return (void*)_InterlockedCompareExchange64((volatile s64*)&target, value, comparand);
|
||||
#else
|
||||
return (void*)_InterlockedCompareExchange((volatile s32*)&target, value, comparand);
|
||||
return (void*)_InterlockedCompareExchange((volatile vol_t*)&target, value, comparand);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user