Public Member Functions | |
ZombieKillerService (edm::ParameterSet const &, edm::ActivityRegistry &) | |
Static Public Member Functions | |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | checkForZombie () |
void | notAZombieYet () |
void | startThread () |
void | stopThread () |
Private Attributes | |
const unsigned int | m_checkThreshold |
bool | m_jobDone |
std::condition_variable | m_jobDoneCondition |
std::mutex | m_jobDoneMutex |
std::atomic< unsigned int > | m_numberChecksWhenNotAlive |
const unsigned int | m_secsBetweenChecks |
std::atomic< bool > | m_stillAlive |
std::thread | m_watchingThread |
Definition at line 28 of file ZombieKillerService.cc.
ZombieKillerService::ZombieKillerService | ( | edm::ParameterSet const & | iPSet, |
edm::ActivityRegistry & | iRegistry | ||
) |
Definition at line 71 of file ZombieKillerService.cc.
References notAZombieYet(), startThread(), stopThread(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModuleBeginStream(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndStream(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPreModuleBeginStream(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndStream(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), and edm::ActivityRegistry::watchPreSourceRun().
|
private |
Definition at line 159 of file ZombieKillerService.cc.
References m_checkThreshold, m_numberChecksWhenNotAlive, m_secsBetweenChecks, and m_stillAlive.
Referenced by startThread().
|
static |
Definition at line 201 of file ZombieKillerService.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and DEFINE_FWK_SERVICE.
|
private |
Definition at line 153 of file ZombieKillerService.cc.
References m_numberChecksWhenNotAlive, and m_stillAlive.
Referenced by ZombieKillerService().
|
private |
Definition at line 173 of file ZombieKillerService.cc.
References checkForZombie(), CommonMethods::lock(), m_jobDoneCondition, m_jobDoneMutex, m_secsBetweenChecks, m_watchingThread, and seconds().
Referenced by ZombieKillerService().
|
private |
Definition at line 191 of file ZombieKillerService.cc.
References m_jobDone, m_jobDoneCondition, m_jobDoneMutex, and m_watchingThread.
Referenced by ZombieKillerService().
|
private |
Definition at line 35 of file ZombieKillerService.cc.
Referenced by checkForZombie().
|
private |
Definition at line 40 of file ZombieKillerService.cc.
Referenced by stopThread().
|
private |
Definition at line 38 of file ZombieKillerService.cc.
Referenced by startThread(), and stopThread().
|
private |
Definition at line 39 of file ZombieKillerService.cc.
Referenced by startThread(), and stopThread().
|
private |
Definition at line 42 of file ZombieKillerService.cc.
Referenced by checkForZombie(), and notAZombieYet().
|
private |
Definition at line 36 of file ZombieKillerService.cc.
Referenced by checkForZombie(), and startThread().
|
private |
Definition at line 41 of file ZombieKillerService.cc.
Referenced by checkForZombie(), and notAZombieYet().
|
private |
Definition at line 37 of file ZombieKillerService.cc.
Referenced by startThread(), and stopThread().