Psyllid
v1.12.4
Project 8 Data Acquisisition Software
source
control
persistent_store.cc
Go to the documentation of this file.
1
/*
2
* persistent_store.cc
3
*
4
* Created on: Jan 27, 2016
5
* Author: nsoblath
6
*/
7
8
#include "
persistent_store.hh
"
9
10
namespace
psyllid
11
{
12
13
persistent_store::persistent_store
() :
14
f_storage(),
15
f_storage_mutex()
16
{
17
}
18
19
persistent_store::~persistent_store
()
20
{
21
}
22
23
void
persistent_store::dump
(
const
std::string& a_label )
24
{
25
std::unique_lock< std::mutex > t_lock(
f_storage_mutex
);
26
storage_it_t
t_item_it =
f_storage
.find( a_label );
27
if
( t_item_it !=
f_storage
.end() )
28
{
29
f_storage
.erase( t_item_it );
30
}
31
return
;
32
}
33
34
35
}
/* namespace psyllid */
persistent_store.hh
psyllid::persistent_store::persistent_store
persistent_store()
Definition:
persistent_store.cc:13
psyllid
Definition:
batch_executor.cc:26
psyllid::persistent_store::~persistent_store
virtual ~persistent_store()
Definition:
persistent_store.cc:19
psyllid::persistent_store::storage_it_t
storage_t::iterator storage_it_t
Definition:
persistent_store.hh:107
psyllid::persistent_store::dump
void dump(const std::string &a_label)
Definition:
persistent_store.cc:23
psyllid::persistent_store::f_storage_mutex
std::mutex f_storage_mutex
Definition:
persistent_store.hh:110
psyllid::persistent_store::f_storage
storage_t f_storage
Definition:
persistent_store.hh:109
Generated by
1.8.13