CMS 3D CMS Logo

ThreadSafeOutputFileStream.cc
Go to the documentation of this file.
2 
3 #include <sstream>
4 
5 namespace edm {
6 
8 
11  while (waitingMessages_.try_pop(tmp)) {
12  file_ << tmp;
13  }
14  file_.close();
15  }
16 
19  bool expected{false};
20  if (msgBeingLogged_.compare_exchange_strong(expected, true)) {
22  while (waitingMessages_.try_pop(tmp)) {
23  file_ << tmp;
24  }
25  msgBeingLogged_.store(false);
26  }
27  }
28 } // namespace edm
tbb::concurrent_queue< std::string > waitingMessages_
ThreadSafeOutputFileStream(std::string const &name)
tuple msg
Definition: mps_check.py:279
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
HLT enums.
def move(src, dest)
Definition: eostools.py:511