FACT++  1.0
int READ_STRUCT::wait ( )
static

Definition at line 254 of file EventBuilder.cc.

References activeSockets, events, factPrintf(), fd_epoll, MessageImp::kError, and NBOARDS.

Referenced by mainloop().

255 {
256  // wait for something to do...
257  const int rc = epoll_wait(fd_epoll, events, NBOARDS, 100); // max, timeout[ms]
258  if (rc>=0)
259  return rc;
260 
261  if (errno==EINTR) // timout or signal interruption
262  return 0;
263 
264  factPrintf(MessageImp::kError, "epoll_wait failed: %m (rc=%d)", errno);
265  return -1;
266 }
static epoll_event events[NBOARDS]
void factPrintf(int severity, const char *fmt,...)
#define NBOARDS
Definition: BasicGlCamera.h:4
Error, something unexpected happened, but can still be handled by the program.
Definition: MessageImp.h:19
static int fd_epoll

+ Here is the call graph for this function:

+ Here is the caller graph for this function: