aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/xport_benchmarker.hpp
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-01-18 09:45:34 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-18 17:51:35 -0800
commita53130679944ddd179593259eb953b89ab1a7a38 (patch)
tree5d8274750bed0b21aa133bc93d97d75bbce0ecd9 /host/lib/transport/xport_benchmarker.hpp
parent2a44d6836ca08b6b67b83b63487b838e138ac379 (diff)
downloaduhd-a53130679944ddd179593259eb953b89ab1a7a38.tar.gz
uhd-a53130679944ddd179593259eb953b89ab1a7a38.tar.bz2
uhd-a53130679944ddd179593259eb953b89ab1a7a38.zip
lib: transport: apply clang-format
This is a continuation of 967be2a4. $ find host/lib/transport -iname *.hpp -o -iname *.cpp |\ xargs clang-format -i -style=file Skipping host/lib/transport/nirio/ because of build errors. $ git checkout host/lib/transport/nirio
Diffstat (limited to 'host/lib/transport/xport_benchmarker.hpp')
-rw-r--r--host/lib/transport/xport_benchmarker.hpp42
1 files changed, 19 insertions, 23 deletions
diff --git a/host/lib/transport/xport_benchmarker.hpp b/host/lib/transport/xport_benchmarker.hpp
index c9ddee0e3..bd12c0ad8 100644
--- a/host/lib/transport/xport_benchmarker.hpp
+++ b/host/lib/transport/xport_benchmarker.hpp
@@ -8,20 +8,20 @@
#ifndef INCLUDED_LIBUHD_XPORT_BENCHMARKER_HPP
#define INCLUDED_LIBUHD_XPORT_BENCHMARKER_HPP
+#include <uhd/transport/vrt_if_packet.hpp>
#include <uhd/transport/zero_copy.hpp>
#include <uhd/types/device_addr.hpp>
#include <uhd/utils/log.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread/thread.hpp>
-#include <uhd/transport/vrt_if_packet.hpp>
namespace uhd { namespace transport {
-//Test class to benchmark a low-level transport object with a VITA/C-VITA data stream
-class xport_benchmarker : boost::noncopyable {
+// Test class to benchmark a low-level transport object with a VITA/C-VITA data stream
+class xport_benchmarker : boost::noncopyable
+{
public:
- const device_addr_t& benchmark_throughput_chdr(
- zero_copy_if::sptr tx_transport,
+ const device_addr_t& benchmark_throughput_chdr(zero_copy_if::sptr tx_transport,
zero_copy_if::sptr rx_transport,
uint32_t sid,
bool big_endian,
@@ -29,39 +29,35 @@ public:
private:
void _stream_tx(
- zero_copy_if* transport,
- vrt::if_packet_info_t* pkt_info,
- bool big_endian);
+ zero_copy_if* transport, vrt::if_packet_info_t* pkt_info, bool big_endian);
- void _stream_rx(
- zero_copy_if* transport,
+ void _stream_rx(zero_copy_if* transport,
const vrt::if_packet_info_t* exp_pkt_info,
bool big_endian);
- void _initialize_chdr(
- zero_copy_if::sptr tx_transport,
+ void _initialize_chdr(zero_copy_if::sptr tx_transport,
zero_copy_if::sptr rx_transport,
uint32_t sid,
vrt::if_packet_info_t& pkt_info);
void _reset_counters(void);
- boost::shared_ptr<boost::thread> _tx_thread;
- boost::shared_ptr<boost::thread> _rx_thread;
+ boost::shared_ptr<boost::thread> _tx_thread;
+ boost::shared_ptr<boost::thread> _rx_thread;
- uint64_t _num_tx_packets;
- uint64_t _num_rx_packets;
- uint64_t _num_tx_timeouts;
- uint64_t _num_rx_timeouts;
- uint64_t _num_data_errors;
+ uint64_t _num_tx_packets;
+ uint64_t _num_rx_packets;
+ uint64_t _num_tx_timeouts;
+ uint64_t _num_rx_timeouts;
+ uint64_t _num_data_errors;
- double _tx_timeout;
- double _rx_timeout;
+ double _tx_timeout;
+ double _rx_timeout;
- device_addr_t _results;
+ device_addr_t _results;
};
-}} //namespace
+}} // namespace uhd::transport
#endif /* INCLUDED_LIBUHD_XPORT_BENCHMARKER_HPP */