From 0860583a993d65d5dcd8c1eaaae87011bb5dc2fa Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Tue, 3 Apr 2012 05:45:23 +0000 Subject: [PATCH] Added overloaded version of file. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1182 7ec92016-0320-0410-acc4-a06ded1c099a --- src/LevelMutex.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/LevelMutex.cpp b/src/LevelMutex.cpp index 7e68057..8dc6d70 100644 --- a/src/LevelMutex.cpp +++ b/src/LevelMutex.cpp @@ -670,6 +670,14 @@ bool LevelMutexInfo::IsLockedByCurrentThreadImpl( void ) const // ---------------------------------------------------------------------------- bool LevelMutexInfo::IsNotLockedByCurrentThread( void ) const volatile +{ + const LevelMutexInfo * pThis = const_cast< const LevelMutexInfo * >( this ); + return pThis->IsNotLockedByCurrentThread(); +} + +// ---------------------------------------------------------------------------- + +bool LevelMutexInfo::IsNotLockedByCurrentThread( void ) const { if ( !IsLocked() ) return true;