mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 05:04:37 +02:00
Yield instead of sleep in case of no msg
This commit is contained in:
@@ -73,6 +73,7 @@ void UdpRecvModule::receive_thread(const uint16_t udp_port)
|
||||
if (!udp_receiver.receive(
|
||||
&packet_buffer,
|
||||
JUNGFRAU_BYTES_PER_PACKET)) {
|
||||
this_thread::yield();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user