Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl
5 * IP, Inti Pelupessy, Netherlands eScience Center, i.pelupessy@esciencecenter.nl
6 *
7 * Copyright (c) 2021, CERN
8 *
9 * Redistribution and use in source and binary forms,
10 * with or without modification, are permitted according to the terms
11 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
12 */
13
14#ifndef ROOT_ROOFIT_MultiProcess_util
15#define ROOT_ROOFIT_MultiProcess_util
16
17#include "RooFit_ZMQ/ppoll.h" // for ZMQ::ppoll_error_t
19
20#include <unistd.h> // getpid, pid_t
21
22namespace RooFit {
23namespace MultiProcess {
24
25int wait_for_child(pid_t child_pid, bool may_throw, int retries_before_killing);
26
29std::tuple<std::vector<std::pair<size_t, zmq::event_flags>>, bool>
30careful_ppoll(ZeroMQPoller &poller, const sigset_t &ppoll_sigmask, std::size_t max_tries = 2);
31
32} // namespace MultiProcess
33} // namespace RooFit
34#endif // ROOT_ROOFIT_MultiProcess_util
#define e(i)
Definition RSha256.hxx:103
Wrapper class for polling ZeroMQ sockets.
std::tuple< std::vector< std::pair< size_t, zmq::event_flags > >, bool > careful_ppoll(ZeroMQPoller &poller, const sigset_t &ppoll_sigmask, std::size_t max_tries=2)
Definition util.cxx:95
zmq_ppoll_error_response handle_zmq_ppoll_error(ZMQ::ppoll_error_t &e)
Definition util.cxx:64
int wait_for_child(pid_t child_pid, bool may_throw, int retries_before_killing)
Definition util.cxx:26
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26