#include <UMutex.h>
Automatically lock the referenced mutex on constructor and unlock mutex on destructor.
Example:
...
int myMethod()
{
if(cond1)
{
return 1;
}
else if(cond2)
{
return 2;
}
return 0;
}
- See also
- UMutex
Definition at line 164 of file UMutex.h.
◆ UScopeMutex() [1/2]
| UScopeMutex::UScopeMutex |
( |
const UMutex & |
mutex | ) |
|
|
inline |
◆ UScopeMutex() [2/2]
| UScopeMutex::UScopeMutex |
( |
UMutex * |
mutex | ) |
|
|
inline |
◆ ~UScopeMutex()
| UScopeMutex::~UScopeMutex |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- utilite/include/rtabmap/utilite/UMutex.h