mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-22 09:04:06 +01:00
Make receiver code more readable
This commit is contained in:
1 parent
5e5dab461e
commit
70f8218bcd
1 file changed
+5
-3
@@ -124,9 +124,11 @@ void ZmqRecvModule::receive_thread(const string& connect_address)
|
||||
auto frame = receiver.receive();
|
||||
|
||||
// .first and .second = nullptr when no message received
|
||||
// If no message or currently not writing, idle.
|
||||
if (frame.first == nullptr ||
|
||||
!is_saving_.load(memory_order_relaxed)) {
|
||||
if (frame.first == nullptr ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!is_saving_.load(memory_order_relaxed)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user