Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::LockGuard Class Reference

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>

Public Member Functions

 LockGuard (Mutex *m_)
 
 ~LockGuard ()
 

Detailed Description

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.

Constructor & Destructor Documentation

mitsuba::LockGuard::LockGuard ( Mutex m_)
inlineexplicit
mitsuba::LockGuard::~LockGuard ( )
inline

The documentation for this class was generated from the following file: