mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
- Avoid polling when only one input channel is used. - Send only handles for shared memory transport. - Avoid waiting in the rate logger thread when nothing to log. - Hide warnings from generated files - Fix #483
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
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" *
|
|
********************************************************************************/
|
|
|
|
#ifndef FAIRMQEXAMPLEMTSAMPLER1_H_
|
|
#define FAIRMQEXAMPLEMTSAMPLER1_H_
|
|
|
|
#include <string>
|
|
#include <thread>
|
|
|
|
#include "FairMQDevice.h"
|
|
|
|
class FairMQExampleMTSampler1 : public FairMQDevice
|
|
{
|
|
public:
|
|
FairMQExampleMTSampler1();
|
|
virtual ~FairMQExampleMTSampler1();
|
|
|
|
protected:
|
|
virtual void InitTask();
|
|
virtual void PreRun();
|
|
virtual bool ConditionalRun();
|
|
virtual void PostRun();
|
|
void ListenForAcks();
|
|
|
|
std::thread fAckListener;
|
|
};
|
|
|
|
#endif /* FAIRMQEXAMPLEMTSAMPLER1_H_ */
|