Add SharedData::ConstAccess

This commit is contained in:
Vinnie Falco
2013-09-27 11:27:33 -07:00
parent 7e4c834c0e
commit 3acb474795
2 changed files with 52 additions and 79 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);