#include <UMutex.h>
Public Member Functions | |
UScopeMutex (const UMutex &mutex) | |
UScopeMutex (UMutex *mutex) | |
~UScopeMutex () | |
Private Attributes | |
const UMutex & | mutex_ |
Automatically lock the referenced mutex on constructor and unlock mutex on destructor.
Example: