mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Allow rate limiting in the Shared Memory example
This commit is contained in:
@@ -37,6 +37,8 @@ class FairMQBenchmarkSampler : public FairMQDevice
|
||||
FairMQBenchmarkSampler();
|
||||
virtual ~FairMQBenchmarkSampler();
|
||||
|
||||
void ResetMsgCounter();
|
||||
|
||||
virtual void SetProperty(const int key, const std::string& value);
|
||||
virtual std::string GetProperty(const int key, const std::string& default_ = "");
|
||||
virtual void SetProperty(const int key, const int value);
|
||||
@@ -48,6 +50,8 @@ class FairMQBenchmarkSampler : public FairMQDevice
|
||||
protected:
|
||||
int fMsgSize;
|
||||
int fNumMsgs;
|
||||
int fMsgCounter;
|
||||
int fMsgRate;
|
||||
|
||||
virtual void Run();
|
||||
};
|
||||
|
Reference in New Issue
Block a user