#include <ThreadSafeOutputFileStream.h>
Public Member Functions | |
operator bool () const | |
ThreadSafeOutputFileStream (std::string const &name) | |
void | write (std::string &&msg) |
~ThreadSafeOutputFileStream () | |
Private Attributes | |
std::ofstream | file_ |
std::atomic< bool > | msgBeingLogged_ {false} |
tbb::concurrent_queue< std::string > | waitingMessages_ {} |
Definition at line 11 of file ThreadSafeOutputFileStream.h.
edm::ThreadSafeOutputFileStream::ThreadSafeOutputFileStream | ( | std::string const & | name | ) |
Definition at line 7 of file ThreadSafeOutputFileStream.cc.
edm::ThreadSafeOutputFileStream::~ThreadSafeOutputFileStream | ( | ) |
Definition at line 9 of file ThreadSafeOutputFileStream.cc.
References file_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and waitingMessages_.
|
inlineexplicit |
Definition at line 17 of file ThreadSafeOutputFileStream.h.
References file_.
void edm::ThreadSafeOutputFileStream::write | ( | std::string && | msg | ) |
Definition at line 17 of file ThreadSafeOutputFileStream.cc.
References file_, eostools::move(), mps_check::msg, msgBeingLogged_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and waitingMessages_.
Referenced by pkg.AbstractPkg::generate(), edm::service::StallMonitor::postBeginJob(), edm::service::StallMonitor::postEvent(), edm::service::StallMonitor::postEventReadFromSource(), edm::service::StallMonitor::postModuleEvent(), edm::service::StallMonitor::postModuleEventAcquire(), edm::service::StallMonitor::postModuleEventPrefetching(), edm::service::StallMonitor::postModuleGlobalTransition(), edm::service::StallMonitor::postModuleStreamTransition(), edm::service::StallMonitor::postSourceEvent(), edm::service::StallMonitor::preEvent(), edm::service::StallMonitor::preEventReadFromSource(), edm::service::StallMonitor::preModuleEvent(), edm::service::StallMonitor::preModuleEventAcquire(), edm::service::StallMonitor::preModuleGlobalTransition(), edm::service::StallMonitor::preModuleStreamTransition(), edm::service::StallMonitor::preSourceEvent(), and edm::service::StallMonitor::StallMonitor().
|
private |
Definition at line 20 of file ThreadSafeOutputFileStream.h.
Referenced by operator bool(), write(), and ~ThreadSafeOutputFileStream().
|
private |
Definition at line 21 of file ThreadSafeOutputFileStream.h.
Referenced by write().
|
private |
Definition at line 22 of file ThreadSafeOutputFileStream.h.
Referenced by write(), and ~ThreadSafeOutputFileStream().