1 #ifndef FWCore_SharedMemory_WorkerMonitorThread_h
2 #define FWCore_SharedMemory_WorkerMonitorThread_h
31 namespace edm::shared_memory {
61 static void sig_handler(
int sig, siginfo_t*,
void*);
static std::atomic< int > s_pipeWriteEnd
std::thread helperThread_
std::atomic< bool > helperReady_
static std::atomic< bool > s_helperThreadDone
void setupSignalHandling()
Sets the unix signal handler which communicates with the thread.
void setAction(std::function< void()> iFunc)
std::atomic< bool > stopRequested_
static void sig_handler(int sig, siginfo_t *, void *)
#define CMS_THREAD_GUARD(_var_)
std::atomic< bool > actionSet_
static std::atomic< int > s_pipeReadEnd
const WorkerMonitorThread & operator=(const WorkerMonitorThread &)=delete
std::function< void()> action_