MADARA
3.2.3
|
A thread-safe guard for a context or knowledge base. More...
#include <ContextGuard.h>
Public Member Functions | |
template<typename... Args> | |
ContextGuard (KnowledgeBase &knowledge, Args &&...args) | |
Constructor. More... | |
template<typename... Args> | |
ContextGuard (ThreadSafeContext &context, Args &&...args) | |
Constructor. More... | |
Private Attributes | |
std::lock_guard< ThreadSafeContext > | guard_ |
A thread-safe guard for a context or knowledge base.
Definition at line 23 of file ContextGuard.h.
|
inline |
Constructor.
Arguments past first forwarded to underlying guard type
Definition at line 6 of file ContextGuard.inl.
|
inline |
Constructor.
Arguments past first forwarded to underlying guard type
Definition at line 13 of file ContextGuard.inl.
|
private |
Definition at line 43 of file ContextGuard.h.