# FairMQ: fairmq/devices/FairMQBenchmarkSampler.h Source File

FairMQBenchmarkSampler.h
/********************************************************************************
* Copyright (C) 2014-2018 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 FAIRMQBENCHMARKSAMPLER_H_
#define FAIRMQBENCHMARKSAMPLER_H_
#include <string>
#include <thread>
#include <atomic>
#include "FairMQDevice.h"
class FairMQBenchmarkSampler : public FairMQDevice
{
public:
FairMQBenchmarkSampler();
virtual ~FairMQBenchmarkSampler();
protected:
bool fMultipart;
size_t fNumParts;
size_t fMsgSize;
std::atomic<int> fMsgCounter;
float fMsgRate;
uint64_t fNumIterations;
uint64_t fMaxIterations;
std::string fOutChannelName;
virtual void InitTask() override;
virtual void Run() override;
};
#endif /* FAIRMQBENCHMARKSAMPLER_H_ */
FairMQBenchmarkSampler
Definition: FairMQBenchmarkSampler.h:22
FairMQDevice
Definition: FairMQDevice.h:46
FairMQBenchmarkSampler::InitTask
virtual void InitTask() override
Task initialization (can be overloaded in child classes)
Definition: FairMQBenchmarkSampler.cxx:35
FairMQBenchmarkSampler::Run
virtual void Run() override
Runs the device (to be overloaded in child classes)
Definition: FairMQBenchmarkSampler.cxx:45

privacy