This policy assures an object-level locking scheme for a derived class. More...
#include <ThreadingPolicies.h>
Classes | |
class | ObjectLevelLockingPolicy |
This class acquires a lock over the host object. More... | |
Public Types | |
typedef ObjectLevelLockingPolicy< LockReadingPolicy > | LockRead |
typedef ObjectLevelLockingPolicy< LockWritingPolicy > | LockWrite |
typedef volatile Host | VolatileType |
Protected Member Functions | |
ObjectLevelLockable () | |
Default constructor. More... | |
ObjectLevelLockable (const ObjectLevelLockable &) | |
Copy constructor. More... | |
~ObjectLevelLockable () | |
Destructor. More... | |
Private Attributes | |
MutexPolicy | m_mtx |
The mutex used to control the object lock. More... | |
Friends | |
class | ObjectLevelLockingPolicy< LockReadingPolicy > |
class | ObjectLevelLockingPolicy< LockWritingPolicy > |
This policy assures an object-level locking scheme for a derived class.
Requirements on types:
Definition at line 151 of file ThreadingPolicies.h.
typedef ObjectLevelLockingPolicy<LockReadingPolicy> te::common::ObjectLevelLockable< Host, MutexPolicy, LockReadingPolicy, LockWritingPolicy >::LockRead |
Definition at line 205 of file ThreadingPolicies.h.
typedef ObjectLevelLockingPolicy<LockWritingPolicy> te::common::ObjectLevelLockable< Host, MutexPolicy, LockReadingPolicy, LockWritingPolicy >::LockWrite |
Definition at line 206 of file ThreadingPolicies.h.
typedef volatile Host te::common::ObjectLevelLockable< Host, MutexPolicy, LockReadingPolicy, LockWritingPolicy >::VolatileType |
Definition at line 204 of file ThreadingPolicies.h.
|
inlineprotected |
Default constructor.
Definition at line 214 of file ThreadingPolicies.h.
|
inlineprotected |
Copy constructor.
Definition at line 220 of file ThreadingPolicies.h.
|
inlineprotected |
Destructor.
Definition at line 226 of file ThreadingPolicies.h.
|
friend |
Definition at line 208 of file ThreadingPolicies.h.
|
friend |
Definition at line 209 of file ThreadingPolicies.h.
|
mutableprivate |
The mutex used to control the object lock.
Definition at line 232 of file ThreadingPolicies.h.