1 #ifndef CARMA_UTIL_SCOPEDEXCLUSIVELOCKMANAGER_H
2 #define CARMA_UTIL_SCOPEDEXCLUSIVELOCKMANAGER_H
24 template <
typename L >
51 template<
typename L >
60 template<
typename L >
66 exclusiveUnlock( lock_ );
70 programLogErrorIfPossible( err.getLogString() );
72 programLogErrorIfPossible(
"~ScopedExclusiveLockManger() - Unknown" );
76 template<
typename L >
82 exclusiveLock( lock_ );
87 template<
typename L >
93 const bool result = tryExclusiveLock( lock_ );
101 template<
typename L >
107 exclusiveUnlock( lock_ );
Exception class for errors.
Exception class for errors The exception comes with a text string that can be printed or logged...
Header file for the CARMA checked build diagnostic macros.
#define CARMA_CHECK(assertion)
Diagnostic macro for checking an assertion in checked builds.
Scoped manager class for exclusive PthreadRWLock locks.
This is the interface file for extra APIs for program logging.