FairMQ/examples/MQ/multiple-transports/FairMQExampleMTSampler1.h
2018-05-02 16:12:57 +02:00

36 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 (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;
uint64_t fMaxIterations;
uint64_t fNumIterations;
};
#endif /* FAIRMQEXAMPLEMTSAMPLER1_H_ */