From Melchior Franz, fixed typo on variable name
This commit is contained in:
parent
5db501941d
commit
3672ba51e7
@ -132,12 +132,12 @@ public:
|
||||
return ptrOld == InterlockedCompareExchangePointer(&_ptr, ptrNew, ptrOld);
|
||||
#elif defined(_OPENTHREADS_ATOMIC_USE_MUTEX)
|
||||
ScopedLock<Mutex> lock(_mutex);
|
||||
if (_ptr != oldPtr)
|
||||
if (_ptr != ptrOld)
|
||||
return false;
|
||||
_ptr = ptrNew;
|
||||
return true;
|
||||
#else
|
||||
if (_ptr != oldPtr)
|
||||
if (_ptr != ptrOld)
|
||||
return false;
|
||||
_ptr = ptrNew;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user