Psyllid  v1.12.4
Project 8 Data Acquisisition Software
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 
14  f_storage(),
15  f_storage_mutex()
16  {
17  }
18 
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 */
storage_t::iterator storage_it_t
void dump(const std::string &a_label)