Simple RAII-style locking of a Mutex. On construction it locks the mutex and unlocks it on destruction. Based on boost::lock_guard, assumes the Mutex will outlive the lock.
More...
#include <mitsuba/core/lock.h>
Simple RAII-style locking of a Mutex. On construction it locks the mutex and unlocks it on destruction. Based on boost::lock_guard, assumes the Mutex will outlive the lock.
mitsuba::LockGuard::LockGuard |
( |
Mutex * |
m_ | ) |
|
|
inlineexplicit |
mitsuba::LockGuard::~LockGuard |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: