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

#include <ThreadingPolicy.h>

Public Member Functions

 Lock (const InstanceLocked &host)
 Lock on host when constructed. More...
 
 Lock (const InstanceLocked *host)
 Lock on host pointer when constructed. More...
 
 ~Lock ()
 Unlock on destruction. More...
 

Private Member Functions

 Lock ()
 No default Locking. More...
 
 Lock (const Lock &)
 No Copy locking. More...
 
Lockoperator= (const Lock &)
 No Assignment locking. More...
 

Private Attributes

const InstanceLockedfHost
 Reference to hosted class. More...
 

Detailed Description

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

Definition at line 97 of file ThreadingPolicy.h.

Constructor & Destructor Documentation

template<class Host , class MutexPolicy = Mutex>
Protium::Threads::InstanceLocked< Host, MutexPolicy >::Lock::Lock ( )
inlineprivate

No default Locking.

Definition at line 101 of file ThreadingPolicy.h.

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

No Copy locking.

Definition at line 103 of file ThreadingPolicy.h.

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

Lock on host when constructed.

Definition at line 109 of file ThreadingPolicy.h.

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

Lock on host pointer when constructed.

Definition at line 114 of file ThreadingPolicy.h.

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

Unlock on destruction.

Definition at line 119 of file ThreadingPolicy.h.

Member Function Documentation

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

No Assignment locking.

Definition at line 106 of file ThreadingPolicy.h.

Member Data Documentation

template<class Host , class MutexPolicy = Mutex>
const InstanceLocked& Protium::Threads::InstanceLocked< Host, MutexPolicy >::Lock::fHost
private

Reference to hosted class.

Definition at line 99 of file ThreadingPolicy.h.