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
ThreadSafeOutputFileStream(std::string const &name)
tuple msg
Definition: mps_check.py:286
HLT enums.
tmp
align.sh
Definition: createJobs.py:716
def move(src, dest)
Definition: eostools.py:511
oneapi::tbb::concurrent_queue< std::string > waitingMessages_