From Melchior Franz, fixed typo on variable name

This commit is contained in:
Robert Osfield 2008-06-20 09:46:45 +00:00
parent 5db501941d
commit 3672ba51e7

View File

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