mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
if interrupted with CTRL+C blocking socket calls will return with -1. Each device should call FairMQDevice::Shutdown() before ending the running state to close open sockets, otherwise the interrupt call itself will block. - FIX: Update number of received messages for FairMQFileSink. - Add ability to poll on outputs for FairMQPoller.
28 lines
929 B
C++
28 lines
929 B
C++
/********************************************************************************
|
|
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
|
* *
|
|
* This software is distributed under the terms of the *
|
|
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
|
|
* copied verbatim in the file "LICENSE" *
|
|
********************************************************************************/
|
|
/**
|
|
* FairMQPoller.h
|
|
*
|
|
* @since 2014-01-23
|
|
* @author A. Rybalchenko
|
|
*/
|
|
|
|
#ifndef FAIRMQPOLLER_H_
|
|
#define FAIRMQPOLLER_H_
|
|
|
|
class FairMQPoller
|
|
{
|
|
public:
|
|
virtual void Poll(int timeout) = 0;
|
|
virtual bool CheckInput(int index) = 0;
|
|
virtual bool CheckOutput(int index) = 0;
|
|
|
|
virtual ~FairMQPoller() {};
|
|
};
|
|
|
|
#endif /* FAIRMQPOLLER_H_ */ |