aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/zero_copy_flow_ctrl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 09:33:36 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:07:26 -0600
commit107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch)
treefdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/transport/zero_copy_flow_ctrl.cpp
parent7d5e48032baa62cbe7467833b9e057900602f4b9 (diff)
downloaduhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.gz
uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.bz2
uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.zip
host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json
Diffstat (limited to 'host/lib/transport/zero_copy_flow_ctrl.cpp')
-rw-r--r--host/lib/transport/zero_copy_flow_ctrl.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/host/lib/transport/zero_copy_flow_ctrl.cpp b/host/lib/transport/zero_copy_flow_ctrl.cpp
index 05907c209..1c4d23a99 100644
--- a/host/lib/transport/zero_copy_flow_ctrl.cpp
+++ b/host/lib/transport/zero_copy_flow_ctrl.cpp
@@ -30,12 +30,12 @@ public:
/* NOP */
}
- ~zero_copy_flow_ctrl_msb()
+ ~zero_copy_flow_ctrl_msb() override
{
/* NOP */
}
- void release()
+ void release() override
{
if (_mb) {
_mb->commit(size());
@@ -64,12 +64,12 @@ public:
/* NOP */
}
- ~zero_copy_flow_ctrl_mrb()
+ ~zero_copy_flow_ctrl_mrb() override
{
/* NOP */
}
- void release()
+ void release() override
{
if (_mb) {
_mb.reset();
@@ -120,13 +120,13 @@ public:
}
}
- ~zero_copy_flow_ctrl_impl() {}
+ ~zero_copy_flow_ctrl_impl() override {}
/*******************************************************************
* Receive implementation:
* Pop the receive buffer pointer from the underlying transport
******************************************************************/
- UHD_INLINE managed_recv_buffer::sptr get_recv_buff(double timeout)
+ UHD_INLINE managed_recv_buffer::sptr get_recv_buff(double timeout) override
{
managed_recv_buffer::sptr ptr;
managed_recv_buffer::sptr buff = _transport->get_recv_buff(timeout);
@@ -139,12 +139,12 @@ public:
return ptr;
}
- UHD_INLINE size_t get_num_recv_frames() const
+ UHD_INLINE size_t get_num_recv_frames() const override
{
return _transport->get_num_recv_frames();
}
- UHD_INLINE size_t get_recv_frame_size() const
+ UHD_INLINE size_t get_recv_frame_size() const override
{
return _transport->get_recv_frame_size();
}
@@ -153,7 +153,7 @@ public:
* Send implementation:
* Pass the send buffer pointer from the underlying transport
******************************************************************/
- managed_send_buffer::sptr get_send_buff(double timeout)
+ managed_send_buffer::sptr get_send_buff(double timeout) override
{
managed_send_buffer::sptr ptr;
managed_send_buffer::sptr buff = _transport->get_send_buff(timeout);
@@ -166,12 +166,12 @@ public:
return ptr;
}
- UHD_INLINE size_t get_num_send_frames() const
+ UHD_INLINE size_t get_num_send_frames() const override
{
return _transport->get_num_send_frames();
}
- UHD_INLINE size_t get_send_frame_size() const
+ UHD_INLINE size_t get_send_frame_size() const override
{
return _transport->get_send_frame_size();
}