MADARA  3.1.8
madara::knowledge::ContextGuard Class Reference

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

#include <ContextGuard.h>

Collaboration diagram for madara::knowledge::ContextGuard:

Public Member Functions

 ContextGuard (KnowledgeBase &knowledge)
 Constructor. More...
 
 ContextGuard (ThreadSafeContext &context)
 Constructor. More...
 
 ~ContextGuard ()
 Destructor. More...
 

Private Attributes

ThreadSafeContextcontext_
 The context that will be locked. More...
 

Detailed Description

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

Definition at line 23 of file ContextGuard.h.

Constructor & Destructor Documentation

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.

Member Data Documentation

ThreadSafeContext& madara::knowledge::ContextGuard::context_
private

The context that will be locked.

Definition at line 46 of file ContextGuard.h.


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