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

#include <UT_LockUtil.h>

+ Inheritance diagram for UT_AutoLockType< Lock >:

Public Member Functions

 UT_AutoLockType (Lock &lock)
 ~UT_AutoLockType ()

Detailed Description

template<class Lock>
class UT_AutoLockType< Lock >

A simple class to acquire a lock and ensure that it is released when it goes out of scope. It locks with a lightweight lock (which is the most common type used). This works with both normal and threadlock types.

This is similar to hboost::lock_guard

Definition at line 26 of file UT_LockUtil.h.

Constructor & Destructor Documentation

template<class Lock>
UT_AutoLockType< Lock >::UT_AutoLockType ( Lock lock)

Definition at line 29 of file UT_LockUtil.h.

template<class Lock>
UT_AutoLockType< Lock >::~UT_AutoLockType ( )

Definition at line 33 of file UT_LockUtil.h.

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