HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_AutoLock< Lock > Class Template Reference

#include <UT_LockUtil.h>

Public Member Functions

 UT_AutoLock (Lock &lock)
 
 ~UT_AutoLock ()
 

Detailed Description

template<class Lock>
class UT_AutoLock< Lock >

A simple class to acquire a lock and ensure that it is released when it goes out of scope.

Note
This is similar to std::lock_guard
Examples:
packedsphere/GU_PackedSphere.C.

Definition at line 26 of file UT_LockUtil.h.

Constructor & Destructor Documentation

template<class Lock >
UT_AutoLock< Lock >::UT_AutoLock ( Lock lock)
inline

Definition at line 29 of file UT_LockUtil.h.

template<class Lock >
UT_AutoLock< Lock >::~UT_AutoLock ( )
inline

Definition at line 33 of file UT_LockUtil.h.


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