ldas-tools-al 2.6.4
|
Resource lock management. More...
#include <objectregistry.hh>
Public Member Functions | |
ObjectRegistryResourceLock (T *Resource) | |
Constructor. 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. |