MADARA  3.2.3
ContextGuard.inl
Go to the documentation of this file.
1 #include "ContextGuard.h"
2 
3 namespace madara { namespace knowledge {
4 
5 template<typename... Args>
7  KnowledgeBase & knowledge, Args&&... args)
8  : guard_ (knowledge.get_context (), std::forward<Args>(args)...)
9 {
10 }
11 
12 template<typename... Args>
14  ThreadSafeContext & context, Args&&... args)
15  : guard_ (context, std::forward<Args>(args)...)
16 {
17 }
18 
19 } }
STL namespace.
This class stores variables and their values for use by any entity needing state information in a thr...
ContextGuard(KnowledgeBase &knowledge, Args &&...args)
Constructor.
Definition: ContextGuard.inl:6
This class provides a distributed knowledge base to users.
Definition: KnowledgeBase.h:45
Provides functions and classes for the distributed knowledge base.
Copyright (c) 2015 Carnegie Mellon University.
std::lock_guard< ThreadSafeContext > guard_
Definition: ContextGuard.h:43