chrono::CHOMPscopedLock Struct Reference
Description
Exception-safe wrapper to a mutex: it automatically locks the mutex as soon as the wrapper is created, and releases the mutex when the wrapper is deleted (you simply put the wrapper in a code section delimited by {} parentheses, so it is deleted by the compiler when exiting the scope of the section or in case of premature exit because of an exception throw)
#include <ChOpenMP.h>
Public Member Functions | |
CHOMPscopedLock (CHOMPmutex &m) | |
void | Unlock () |
void | LockAgain () |
The documentation for this struct was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/utils/ChOpenMP.h