|
CARMA C++
|
A scope class (i.e. More...
#include <carma/util/ScopedPthreadMutexLockManager.h>
Public Member Functions | |
| void | LockMutex () |
| ScopedPthreadMutexLockManager (PthreadMutex &mutex) | |
| bool | TryLockMutex () |
| void | UnlockMutex () |
A scope class (i.e.
a class that does or manages something for the lifetime of the instance) that makes non-trivial PthreadMutex lock management easier in a C++ world.
If your locking needs are simple then ScopedPthreadMutexLock might be all you need. Lock chaining usage might look something like this:
Another usage might look something like this:
Definition at line 54 of file ScopedPthreadMutexLockManager.h.