Thin wrapper around the recursive boost thread lock. More...
#include <mitsuba/core/lock.h>
Inheritance diagram for mitsuba::Mutex:Public Member Functions | |
| Mutex () | |
| Create a new mutex object. More... | |
| void | lock () |
| Lock the mutex. More... | |
| void | unlock () |
| Unlock the mutex. More... | |
| virtual const Class * | getClass () const |
| Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
| Object () | |
| Construct a new object. More... | |
| int | getRefCount () const |
| Return the current reference count. More... | |
| void | incRef () const |
| Increase the reference count of the object by one. More... | |
| void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More... | |
| virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
| static Class * | m_theClass |
Static Public Attributes inherited from Object | |
| static Class * | m_theClass |
| Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
| virtual | ~Mutex () |
| Virtual destructor. More... | |
Protected Member Functions inherited from Object | |
| virtual | ~Object () |
| Virtual private deconstructor. (Will only be called by ref) More... | |
Friends | |
| class | ConditionVariable |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static void | staticInitialization () |
| Initializes the built-in reference count debugger (if enabled) More... | |
| static void | staticShutdown () |
| Free the memory taken by staticInitialization() More... | |
Thin wrapper around the recursive boost thread lock.
| mitsuba::Mutex::Mutex | ( | ) |
Create a new mutex object.
|
protectedvirtual |
Virtual destructor.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
| void mitsuba::Mutex::lock | ( | ) |
Lock the mutex.
| void mitsuba::Mutex::unlock | ( | ) |
Unlock the mutex.
|
friend |
|
static |