mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-12-02 09:47:47 +01:00
Receiver process adaptation
This commit is contained in:
1 parent
2a7ef227fb
commit
724ac2101e
1 file changed
+1
-2
@@ -115,7 +115,7 @@ void ProcessManager::receive_zmq()
|
||||
auto frame = receiver.receive();
|
||||
|
||||
// In case no message is available before the timeout, both pointers are NULL.
|
||||
if (!frame.first){
|
||||
if (!frame.first || !writer_manager.receive_frame()){
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,6 @@ void ProcessManager::receive_zmq()
|
||||
cout << "." << endl;
|
||||
#endif
|
||||
|
||||
// Commit the frame to the buffer.
|
||||
ring_buffer.write(frame_metadata, frame_data);
|
||||
|
||||
writer_manager.received_frame(frame_metadata->frame_index);
|
||||
|
||||
Reference in new issue
Block a user