1 #ifndef CARMA_UTIL_SCOPED_LOCK_H
2 #define CARMA_UTIL_SCOPED_LOCK_H
5 #include "carma/util/posixErrors.h"
45 template<
typename M >
77 template<
typename M >
86 template<
typename M >
90 logIfPosixError( unlockMutexNoThrow( m_ ) );
ScopedLock(M &m)
Obtains a lock on the given mutex for the caller's thread (possibly waiting an indeterminate amount o...
A templated scope class (i.e.
~ScopedLock()
Releases the lock on the mutex (that was given to the constructor) held by the caller's thread...