mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 01:04:12 +02:00
Rename RB initialization variable
This commit is contained in:
@@ -14,7 +14,7 @@ class UdpRecvModule {
|
||||
protected:
|
||||
void receive_thread(
|
||||
const uint16_t udp_port,
|
||||
const size_t udp_buffer_n_bytes);
|
||||
const size_t frame_size);
|
||||
|
||||
public:
|
||||
UdpRecvModule(RingBuffer<UdpFrameMetadata>& ring_buffer);
|
||||
@@ -23,7 +23,7 @@ class UdpRecvModule {
|
||||
|
||||
void start_recv(
|
||||
const uint16_t udp_port,
|
||||
const size_t udp_buffer_n_bytes);
|
||||
const size_t frame_n_bytes);
|
||||
void stop_recv();
|
||||
bool is_receiving();
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@ UdpRecvModule::~UdpRecvModule()
|
||||
|
||||
void UdpRecvModule::start_recv(
|
||||
const uint16_t udp_port,
|
||||
const size_t udp_buffer_n_bytes)
|
||||
const size_t frame_n_bytes)
|
||||
{
|
||||
if (is_receiving_ == true) {
|
||||
std::stringstream err_msg;
|
||||
@@ -73,10 +73,10 @@ void UdpRecvModule::stop_recv()
|
||||
|
||||
void UdpRecvModule::receive_thread(
|
||||
const uint16_t udp_port,
|
||||
const size_t udp_buffer_n_bytes)
|
||||
const size_t frame_size)
|
||||
{
|
||||
try {
|
||||
ring_buffer_.initialize(udp_buffer_n_bytes);
|
||||
ring_buffer_.initialize(frame_size);
|
||||
|
||||
UdpReceiver udp_receiver;
|
||||
udp_receiver.bind(udp_port);
|
||||
|
||||
Reference in New Issue
Block a user