NCBI C++ ToolKit
|
Search Toolkit Book for CRegistryReadGuard
CRegistry{Read,Write}Guard –. More...
#include <corelib/ncbireg.hpp>
Public Types | |
typedef CGuard< IRegistry, SSimpleReadLock< IRegistry > > | TParent |
Public Types inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > > | |
typedef IRegistry | resource_type |
typedef resource_type * | resource_ptr |
typedef SSimpleReadLock< IRegistry > | lock_type |
typedef SSimpleUnlock< IRegistry > | unlock_type |
typedef CGuard< IRegistry, SSimpleReadLock< IRegistry >, SSimpleUnlock< IRegistry >, CGuard_Base::eReport > | TThisType |
Public Types inherited from CGuard_Base | |
enum | EReportExceptions { eReport , eSilent } |
Exception reporting options. More... | |
Public Member Functions | |
CRegistryReadGuard (const IRegistry ®) | |
Public Member Functions inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > > | |
CGuard (EEmptyGuard) | |
CGuard (resource_type &resource) | |
This constructor locks the resource passed. More... | |
CGuard (EEmptyGuard, const lock_type &lock, const unlock_type &unlock=unlock_type()) | |
CGuard (resource_type &resource, const lock_type &lock, const unlock_type &unlock=unlock_type()) | |
This constructor locks the resource passed. More... | |
~CGuard () | |
Destructor releases the resource. More... | |
void | Release () |
Manually force the resource to be released. More... | |
void | Guard (resource_type &resource) |
Manually force the guard to protect some other resource. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > > | |
resource_ptr & | GetResource (void) |
lock_type & | GetLock (void) |
unlock_type & | GetUnlock (void) |
Static Protected Member Functions inherited from CGuard_Base | |
static void | ReportException (std::exception &ex) |
CRegistry{Read,Write}Guard –.
Guard classes to ensure one-thread-at-a-time access to registries.
Definition at line 1034 of file ncbireg.hpp.