mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 12:12:23 +02:00
Fixed bug in queue slot allocation
(Of course it can really happen!)
This commit is contained in:
@@ -103,7 +103,7 @@ void LiveRecvModule::receive_thread(const size_t n_modules, void* ctx_)
|
||||
}
|
||||
|
||||
uint64_t current_pulse_id = 0;
|
||||
auto slot_id = queue_.read();
|
||||
auto slot_id = queue_.reserve();
|
||||
if (slot_id == -1) throw runtime_error("This cannot really happen");
|
||||
|
||||
auto metadata = queue_.get_metadata_buffer(slot_id);
|
||||
|
||||
Reference in New Issue
Block a user