Add SharedData::ConstAccess

This commit is contained in:
Vinnie Falco
2013-09-27 11:27:33 -07:00
parent 7437308bab
commit c5f017739d
3 changed files with 53 additions and 80 deletions

View File

@@ -395,7 +395,7 @@ void TrackedMutex::acquired (char const* fileName, int lineNumber) const noexcep
else
{
// Thread already had ownership of the mutex.
bassert (SharedState::UnlockedAccess (m_state)->thread == &thread);
bassert (SharedState::ConstUnlockedAccess (m_state)->thread == &thread);
// If this goes off it means we counted wrong.
bassert (thread.refCount >= m_count);