ldas-tools-al
2.6.7
|
Resource lock management. More...
#include <objectregistry.hh>
Public Member Functions | |
ObjectRegistryResourceLock (T *Resource) | |
Constructor. More... | |
ObjectRegistryResourceLock (T *Resource) | |
Constructor. More... | |
ObjectRegistryResourceLock (T *Resource) | |
Constructor. More... | |
Private Attributes | |
T * | m_resource |
Resource object. More... | |
ObjectRegistry< T > & | m_registry |
Registry object. More... | |
Resource lock management.
This is the public class to be used when defining objects for locking resources.
T | The type of the resource to be locked/unlocked |
R | The registry which should contain the resouce to be locked/unlocked. |
ExceptionDesc | The parameter to be passed to the ExceptionType when a range_error happens. |
ExceptionType | The type of exception to throw on range_errors |
|
inline |
Constructor.
Initialize by locking the object.
ExceptionType | If a range error occurs which indicates that the Resource is not being managed by R, then throw as ExceptionType instead. |
|
inline |
Constructor.
Initialize by locking the object.
ExceptionType | If a range error occurs which indicates that the Resource is not being managed by R, then throw as ExceptionType instead. |
|
inline |
Constructor.
Initialize by locking the object.
ExceptionType | If a range error occurs which indicates that the Resource is not being managed by R, then throw as ExceptionType instead. |
|
privateinherited |
Registry object.
This is the registry that should contain the resouce.
|
privateinherited |
Resource object.
This is the resource that is being locked.