Make UdpReceiver quicker and more simple

This commit is contained in:
2020-05-04 12:17:54 +02:00
parent 7841a70698
commit a6d065a285
2 changed files with 45 additions and 72 deletions
+8
View File
@@ -12,6 +12,14 @@ class UdpRecvModule {
std::thread receiving_thread_;
std::atomic_bool is_receiving_;
inline void init_frame(
ModuleFrame* frame_metadata,
jungfrau_packet& packet_buffer);
inline void reserve_next_frame_buffers(
ModuleFrame*& frame_metadata,
char*& frame_buffer);
protected:
void receive_thread(const uint16_t udp_port);