ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
ppoll.cpp
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
*
6
* Copyright (c) 2021, CERN
7
*
8
* Redistribution and use in source and binary forms,
9
* with or without modification, are permitted according to the terms
10
* listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11
*/
12
13
#include "
RooFit_ZMQ/ppoll.h
"
14
15
namespace
ZMQ
{
16
17
/// Wrapper around zmq_ppoll
18
/// This function can throw, so wrap in try-catch!
19
int
ppoll
(zmq_pollitem_t *items_,
size_t
nitems_,
long
timeout_,
const
sigset_t *sigmask_)
20
{
21
int
rc = zmq_ppoll(items_,
static_cast<
int
>
(nitems_), timeout_, sigmask_);
22
if
(rc < 0)
23
throw
ppoll_error_t
();
24
return
rc;
25
}
26
27
/// Wrapper around zmq_ppoll
28
/// This function can throw, so wrap in try-catch!
29
int
ppoll
(std::vector<zmq_pollitem_t> &items,
long
timeout_,
const
sigset_t *sigmask_)
30
{
31
return
ppoll
(items.data(), items.size(), timeout_, sigmask_);
32
}
33
34
}
// namespace ZMQ
ZMQ::ppoll_error_t
Definition
ppoll.h:23
ZMQ
Definition
functions.h:19
ZMQ::ppoll
int ppoll(zmq_pollitem_t *items_, size_t nitems_, long timeout_, const sigset_t *sigmask_)
Wrapper around zmq_ppoll This function can throw, so wrap in try-catch!
Definition
ppoll.cpp:19
ppoll.h
roofit
roofitZMQ
src
ppoll.cpp
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1