diff options
author | Tobias Frust <tobiasfrust@gmail.com> | 2016-10-13 10:27:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 10:27:01 +0200 |
commit | a38a5f1b646cdc992c3b602330a41036bc9bf7b1 (patch) | |
tree | 7fc93e5f5c3729d0fa013946fe60fa881a53579c /src/ReceiverThreads/ReceiverThreads.h | |
parent | 8af3d595e2856f81a46a91d67e96f53cb3b25d0f (diff) | |
parent | cdab7a0b05f655a2f98f00f3fb8928e54b8c28d2 (diff) | |
download | ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.gz ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.bz2 ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.xz ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.zip |
Merge pull request #2 from tobiasfrust/master
Merge of the DetectorSimulator
Diffstat (limited to 'src/ReceiverThreads/ReceiverThreads.h')
-rw-r--r-- | src/ReceiverThreads/ReceiverThreads.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ReceiverThreads/ReceiverThreads.h b/src/ReceiverThreads/ReceiverThreads.h new file mode 100644 index 0000000..7cb04c0 --- /dev/null +++ b/src/ReceiverThreads/ReceiverThreads.h @@ -0,0 +1,35 @@ +/* + * Copyright 2016 + * + * ReceiverThreads.h + * + * Created on: 21.07.2016 + * Author: Tobias Frust + */ + +#ifndef RECEIVERTHREADS_H_ +#define RECEIVERTHREADS_H_ + +#include <vector> +#include <thread> + +class ReceiverThreads { +public: + ReceiverThreads(const std::string& address, const int timeIntervall, const int numberOfDetectorModules); + + auto run() -> void; +private: + auto receiverThread(const int port) -> void; + + std::vector<std::thread> receiverModules_; + + std::size_t loss_; + + int timeIntervall_; + int numberOfDetectorModules_; + + std::string address_; + +}; + +#endif /* RECEIVERTHREADS_H_ */ |