MADARA
3.1.8
|
A thread-safe guard for a context or knowledge base. More...
#include <ContextGuard.h>
Public Member Functions | |
ContextGuard (KnowledgeBase &knowledge) | |
Constructor. More... | |
ContextGuard (ThreadSafeContext &context) | |
Constructor. More... | |
~ContextGuard () | |
Destructor. More... | |
Private Attributes | |
ThreadSafeContext & | context_ |
The context that will be locked. More... | |
A thread-safe guard for a context or knowledge base.
Definition at line 23 of file ContextGuard.h.
madara::knowledge::ContextGuard::ContextGuard | ( | KnowledgeBase & | knowledge | ) |
Constructor.
Definition at line 3 of file ContextGuard.cpp.
madara::knowledge::ContextGuard::ContextGuard | ( | ThreadSafeContext & | context | ) |
Constructor.
Definition at line 10 of file ContextGuard.cpp.
madara::knowledge::ContextGuard::~ContextGuard | ( | ) |
Destructor.
Definition at line 17 of file ContextGuard.cpp.
|
private |
The context that will be locked.
Definition at line 46 of file ContextGuard.h.