1 #ifndef CARMA_UTIL_SCOPED_PTHREAD_MUTEX_LOCK_H
2 #define CARMA_UTIL_SCOPED_PTHREAD_MUTEX_LOCK_H
5 #include "carma/util/PthreadMutex.h"
6 #include "carma/util/posixErrors.h"
74 logIfPosixError( mutex_.UnlockNoThrow( ) );
ScopedPthreadMutexLock(PthreadMutex &mutex)
Obtains a lock on the given mutex for the caller's thread (possibly waiting an indeterminate amount o...
void Lock()
Obtain a lock on the instance for the caller's thread.
~ScopedPthreadMutexLock()
Releases the lock on the mutex (that was given to the constructor) held by the caller's thread...
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...