FairMQ  1.3.7
C++ Message Passing Framework
FairMQBenchmarkSampler.h
1 /********************************************************************************
2  * Copyright (C) 2014-2018 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef FAIRMQBENCHMARKSAMPLER_H_
10 #define FAIRMQBENCHMARKSAMPLER_H_
11 
12 #include <string>
13 #include <thread>
14 #include <atomic>
15 
16 #include "FairMQDevice.h"
17 
23 {
24  public:
26  virtual ~FairMQBenchmarkSampler();
27 
28  protected:
29  bool fMultipart;
30  size_t fNumParts;
31  size_t fMsgSize;
32  std::atomic<int> fMsgCounter;
33  float fMsgRate;
34  uint64_t fNumIterations;
35  uint64_t fMaxIterations;
36  std::string fOutChannelName;
37 
38  virtual void InitTask() override;
39  virtual void Run() override;
40 };
41 
42 #endif /* FAIRMQBENCHMARKSAMPLER_H_ */
Definition: FairMQBenchmarkSampler.h:22
Definition: FairMQDevice.h:46
virtual void InitTask() override
Task initialization (can be overloaded in child classes)
Definition: FairMQBenchmarkSampler.cxx:35
virtual void Run() override
Runs the device (to be overloaded in child classes)
Definition: FairMQBenchmarkSampler.cxx:45

privacy