MADARA
3.4.1
ContextGuard.h
Go to the documentation of this file.
1
2
#ifndef _MADARA_CONTEXT_GUARD_H_
3
#define _MADARA_CONTEXT_GUARD_H_
4
5
#include "
madara/knowledge/KnowledgeBase.h
"
6
15
namespace
madara
16
{
17
namespace
knowledge
18
{
23
class
MADARA_EXPORT
ContextGuard
24
{
25
public
:
31
template
<
typename
... Args>
32
ContextGuard
(
const
KnowledgeBase
&
knowledge
, Args&&... args);
33
39
template
<
typename
... Args>
40
ContextGuard
(
const
ThreadSafeContext
& context, Args&&... args);
41
42
private
:
43
std::lock_guard<const ThreadSafeContext>
guard_
;
44
};
45
}
46
}
47
48
#include "
ContextGuard.inl
"
49
50
#endif
// _MADARA_CONTEXT_GUARD_H_
ContextGuard.inl
KnowledgeBase.h
madara::knowledge::ContextGuard
A thread-safe guard for a context or knowledge base.
Definition:
ContextGuard.h:24
madara::knowledge::ContextGuard::guard_
std::lock_guard< const ThreadSafeContext > guard_
Definition:
ContextGuard.h:43
madara::knowledge::KnowledgeBase
This class provides a distributed knowledge base to users.
Definition:
KnowledgeBase.h:45
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:76
madara::knowledge
Provides functions and classes for the distributed knowledge base.
Definition:
AggregateFilter.h:33
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
knowledge
ContextGuard.h
Generated on Sat Jan 20 2024 00:40:27 for MADARA by
1.9.1