mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-06 00:33:26 +01:00
Fixed bug in queue slot allocation
(Of course it can really happen!)
This commit is contained in:
1 parent
7b524501c0
commit
b31b6cddf9
1 file changed
+1
-1
@@ -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