lock_scope Class Template Reference
[Synchronisation Library]

#include <stlsoft/synch/lock_scope.hpp>

List of all members.


Detailed Description

template<typename L, typename T = lock_traits<L>>
class stlsoft::lock_scope< L, T >

This class scopes the lock status of a lockable type.

Parameters:
L The lockable type, e.g. stlsoft::null_mutex
T The lock traits. On translators that support default template arguments this defaults to lock_traits<L>

Public Types

Member Types
typedef L lock_type
 The lockable type.
typedef T traits_type
 The traits type.
typedef lock_scope< L, T > class_type
 The current parameterisation of this type.

Public Member Functions

Construction
 lock_scope (lock_type &l)
 Locks the lockable instance.
 ~lock_scope () throw ()
 Unlocks the lockable instance.

Member Typedef Documentation

typedef L lock_type

The lockable type.

typedef T traits_type

The traits type.

typedef lock_scope<L, T> class_type

The current parameterisation of this type.


Constructor & Destructor Documentation

lock_scope ( lock_type l  )  [inline]

Locks the lockable instance.

~lock_scope (  )  throw () [inline]

Unlocks the lockable instance.


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

Generated on Thu Jun 10 08:59:01 2010 for STLSoft by  doxygen 1.5.6