Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock Class Reference

Lock on instance creation uses the static initializer to lock all instances of host. More...

#include <ThreadingPolicy.h>

Public Member Functions

 Lock ()
 
 Lock (const StaticLocked &)
 For COmpatibility with instance locked. More...
 
 Lock (const StaticLocked *)
 For compatibility with instance locked. More...
 
 ~Lock ()
 Unlocks class. More...
 

Private Member Functions

 Lock (const Lock &)
 
Lockoperator= (const Lock &)
 

Detailed Description

template<class Host, class MutexPolicy = Mutex>
class Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock

Lock on instance creation uses the static initializer to lock all instances of host.

Definition at line 159 of file ThreadingPolicy.h.

Constructor & Destructor Documentation

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::Lock ( )
inline

Definition at line 162 of file ThreadingPolicy.h.

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::Lock ( const StaticLocked )
inlineexplicit

For COmpatibility with instance locked.

Definition at line 168 of file ThreadingPolicy.h.

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::Lock ( const StaticLocked )
inlineexplicit

For compatibility with instance locked.

Definition at line 174 of file ThreadingPolicy.h.

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::~Lock ( )
inline

Unlocks class.

Definition at line 181 of file ThreadingPolicy.h.

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::Lock ( const Lock )
private

Member Function Documentation

template<class Host , class MutexPolicy = Mutex>
Lock& Protium::Threads::StaticLocked< Host, MutexPolicy >::Lock::operator= ( const Lock )
private