Add -i option as exit condition

After -i# iterations sampler and sink will exit RUNNING state.
This commit is contained in:
Dennis Klein
2019-01-30 18:32:39 +01:00
committed by Dennis Klein
parent 14980d7486
commit b53691c8ad
6 changed files with 47 additions and 2 deletions

View File

@@ -25,9 +25,14 @@ class Sampler : public FairMQDevice
public:
Sampler();
virtual ~Sampler();
void InitTask() override;
protected:
virtual bool ConditionalRun();
private:
uint64_t fIterations;
uint64_t fCounter;
};
} // namespace example_dds