Unlock and close the MDS item when the ReadLock goes out of scope.
More...
#include <GlobalMetadataStore.h>
Unlock and close the MDS item when the ReadLock goes out of scope.
- Note
- This needs to be public because software that uses the MDS needs to hold instances of the MDSReadLock.
-
Passing in a pointer to an instance of GlobalMetadataStore makes GlobalMetadataStore easier to subclass. If get_instance() is called in this code, then only a GlobalMetadataStore, and not the subclass, will be used to unlock the item.
Definition at line 193 of file GlobalMetadataStore.h.
◆ MDSReadLock() [1/2]
bes::GlobalMetadataStore::MDSReadLock::MDSReadLock |
( |
| ) |
|
|
inline |
◆ MDSReadLock() [2/2]
◆ ~MDSReadLock()
bes::GlobalMetadataStore::MDSReadLock::~MDSReadLock |
( |
| ) |
|
|
inline |
◆ clearLock()
virtual void bes::GlobalMetadataStore::MDSReadLock::clearLock |
( |
| ) |
|
|
inlinevirtual |
◆ operator()()
virtual bool bes::GlobalMetadataStore::MDSReadLock::operator() |
( |
| ) |
|
|
inlinevirtual |
◆ locked
bool bes::GlobalMetadataStore::MDSReadLock::locked |
◆ mds
◆ name
std::string bes::GlobalMetadataStore::MDSReadLock::name |
The documentation for this struct was generated from the following file: