libcopp  1.1.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes
util::lock::lock_holder< TLock, TLockAct, TUnlockAct > Class Template Reference

#include <lock_holder.h>

Collaboration diagram for util::lock::lock_holder< TLock, TLockAct, TUnlockAct >:
Collaboration graph

Public Types

typedef TLock value_type
 

Public Member Functions

 lock_holder (TLock &lock)
 
 ~lock_holder ()
 
bool is_available () const
 

Private Member Functions

 lock_holder (const lock_holder &)
 
lock_holderoperator= (const lock_holder &)
 

Private Attributes

value_typelock_flag_
 

Detailed Description

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
class util::lock::lock_holder< TLock, TLockAct, TUnlockAct >

Definition at line 51 of file lock_holder.h.

Member Typedef Documentation

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
typedef TLock util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::value_type

Definition at line 53 of file lock_holder.h.

Constructor & Destructor Documentation

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::lock_holder ( TLock &  lock)
inline

Definition at line 55 of file lock_holder.h.

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::~lock_holder ( )
inline

Definition at line 61 of file lock_holder.h.

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::lock_holder ( const lock_holder< TLock, TLockAct, TUnlockAct > &  )
private

Member Function Documentation

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
bool util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::is_available ( ) const
inline

Definition at line 67 of file lock_holder.h.

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
lock_holder& util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::operator= ( const lock_holder< TLock, TLockAct, TUnlockAct > &  )
private

Field Documentation

template<typename TLock, typename TLockAct = detail::default_lock_action<TLock>, typename TUnlockAct = detail::default_unlock_action<TLock>>
value_type* util::lock::lock_holder< TLock, TLockAct, TUnlockAct >::lock_flag_
private

Definition at line 74 of file lock_holder.h.


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