MADARA  3.2.3
madara::knowledge::ContextGuard Class Reference

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< ThreadSafeContextguard_
 

Detailed Description

A thread-safe guard for a context or knowledge base.

Definition at line 23 of file ContextGuard.h.

Constructor & Destructor Documentation

template<typename... Args>
madara::knowledge::ContextGuard::ContextGuard ( KnowledgeBase knowledge,
Args &&...  args 
)
inline

Constructor.

Arguments past first forwarded to underlying guard type

Definition at line 6 of file ContextGuard.inl.

template<typename... Args>
madara::knowledge::ContextGuard::ContextGuard ( ThreadSafeContext context,
Args &&...  args 
)
inline

Constructor.

Arguments past first forwarded to underlying guard type

Definition at line 13 of file ContextGuard.inl.

Member Data Documentation

std::lock_guard<ThreadSafeContext> madara::knowledge::ContextGuard::guard_
private

Definition at line 43 of file ContextGuard.h.


The documentation for this class was generated from the following files: