mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-07 19:58:40 +02:00
Implement ZmqRecvModule start procedure
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef ZMQRECVMODULE_H
|
||||
#define ZMQRECVMODULE_H
|
||||
|
||||
#include <thread>
|
||||
#include "ZmqReceiver.hpp"
|
||||
#include "RingBuffer.hpp"
|
||||
|
||||
@@ -12,11 +13,11 @@ class ZmqRecvModule
|
||||
const header_map& header_values_;
|
||||
const std::atomic_bool& is_writing_;
|
||||
std::atomic_bool is_receiving_;
|
||||
std::vector<std::thread> receiving_threads_;
|
||||
|
||||
protected:
|
||||
void receive_thread(
|
||||
const std::string& connect_address,
|
||||
const uint8_t n_receiving_threads);
|
||||
const std::string& connect_address);
|
||||
|
||||
public:
|
||||
ZmqRecvModule(
|
||||
@@ -24,10 +25,8 @@ public:
|
||||
const header_map& header_values,
|
||||
const std::atomic_bool& is_writing);
|
||||
|
||||
void start(
|
||||
const std::string& connect_address,
|
||||
const uint8_t n_receiving_thread);
|
||||
|
||||
void start(const std::string& connect_address,
|
||||
const uint8_t n_receiving_threads);
|
||||
void stop();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user