1 #ifndef EVENTFILTER_UTILTIES_PLUGINS_EVFBuildingThrottle 2 #define EVENTFILTER_UTILTIES_PLUGINS_EVFBuildingThrottle 12 #include <sys/statvfs.h> 27 sleep_(
pset.getUntrackedParameter<unsigned
int>(
"sleepmSecs", 1000)) {
76 std::cout <<
">>>>throttling on " << std::endl;
86 std::cout <<
" Shutdown flag set: stop throttling" << std::endl;
std::atomic< bool > m_stoprequest
volatile std::atomic< bool > shutdown_flag
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void preBeginLumi(edm::GlobalContext const &gc)
void postBeginRun(edm::GlobalContext const &gc)
static ServiceRegistry & instance()
Directory whatToThrottleOn_
EvFBuildingThrottle(const edm::ParameterSet &pset, edm::ActivityRegistry ®)
std::shared_ptr< std::thread > m_thread
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void preBeginRun(edm::GlobalContext const &gc)
ServiceToken presentToken() const
void postEndRun(edm::GlobalContext const &gc)