#include <EvFBuildingThrottle.h>
Public Types | |
enum | Directory { mInvalid = 0, mBase, mBU, mCOUNT } |
Public Member Functions | |
EvFBuildingThrottle (const edm::ParameterSet &pset, edm::ActivityRegistry ®) | |
void | postBeginRun (edm::GlobalContext const &gc) |
void | postEndRun (edm::GlobalContext const &gc) |
void | preBeginLumi (edm::GlobalContext const &gc) |
void | preBeginRun (edm::GlobalContext const &gc) |
bool | throttled () const |
~EvFBuildingThrottle () | |
Private Member Functions | |
void | dowork () |
void | start () |
void | stop () |
Private Attributes | |
std::string | baseDir_ |
double | highWaterMark_ |
std::mutex | lock_ |
double | lowWaterMark_ |
std::atomic< bool > | m_stoprequest |
std::shared_ptr< std::thread > | m_thread |
unsigned int | sleep_ |
bool | throttled_ |
edm::ServiceToken | token_ |
Directory | whatToThrottleOn_ |
Definition at line 18 of file EvFBuildingThrottle.h.
|
inlineexplicit |
Definition at line 21 of file EvFBuildingThrottle.h.
References postEndRun(), preBeginLumi(), preBeginRun(), edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), and edm::ActivityRegistry::watchPreGlobalBeginRun().
|
inline |
Definition at line 32 of file EvFBuildingThrottle.h.
|
inlineprivate |
Definition at line 60 of file EvFBuildingThrottle.h.
References baseDir_, visDQMUpload::buf, gather_cfg::cout, nano_mu_digi_cff::float, HLT_2024v13_cff::fraction, highWaterMark_, lock_, lowWaterMark_, m_stoprequest, edm::shutdown_flag, sleep_, throttled_, and token_.
Referenced by start().
|
inline |
Definition at line 50 of file EvFBuildingThrottle.h.
|
inline |
Definition at line 52 of file EvFBuildingThrottle.h.
References stop().
Referenced by EvFBuildingThrottle().
|
inline |
Definition at line 53 of file EvFBuildingThrottle.h.
References lock_.
Referenced by EvFBuildingThrottle().
|
inline |
Definition at line 33 of file EvFBuildingThrottle.h.
References baseDir_, mBase, mBU, mInvalid, start(), and whatToThrottleOn_.
Referenced by EvFBuildingThrottle().
|
inlineprivate |
Definition at line 93 of file EvFBuildingThrottle.h.
References cms::cuda::assert(), gather_cfg::cout, dowork(), edm::ServiceRegistry::instance(), m_thread, edm::ServiceRegistry::presentToken(), token_, and whatToThrottleOn_.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and preBeginRun().
|
inlineprivate |
Definition at line 99 of file EvFBuildingThrottle.h.
References cms::cuda::assert(), m_stoprequest, and m_thread.
Referenced by postEndRun().
|
inline |
|
private |
Definition at line 110 of file EvFBuildingThrottle.h.
Referenced by dowork(), and preBeginRun().
|
private |
Definition at line 105 of file EvFBuildingThrottle.h.
Referenced by dowork().
|
private |
Definition at line 109 of file EvFBuildingThrottle.h.
Referenced by dowork(), and preBeginLumi().
|
private |
Definition at line 106 of file EvFBuildingThrottle.h.
Referenced by dowork().
|
private |
Definition at line 107 of file EvFBuildingThrottle.h.
|
private |
Definition at line 108 of file EvFBuildingThrottle.h.
|
private |
Definition at line 114 of file EvFBuildingThrottle.h.
Referenced by dowork().
|
private |
Definition at line 113 of file EvFBuildingThrottle.h.
Referenced by dowork(), and throttled().
|
private |
Definition at line 112 of file EvFBuildingThrottle.h.
|
private |
Definition at line 111 of file EvFBuildingThrottle.h.
Referenced by preBeginRun(), and start().