mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-26 15:40:45 +02:00
Receiver process adaptation
This commit is contained in:
@@ -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