diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 09:33:36 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:07:26 -0600 |
commit | 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch) | |
tree | fdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/usrp/usrp1/soft_time_ctrl.cpp | |
parent | 7d5e48032baa62cbe7467833b9e057900602f4b9 (diff) | |
download | uhd-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/usrp/usrp1/soft_time_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/usrp1/soft_time_ctrl.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/host/lib/usrp/usrp1/soft_time_ctrl.cpp b/host/lib/usrp/usrp1/soft_time_ctrl.cpp index 42a1e9712..1c3015480 100644 --- a/host/lib/usrp/usrp1/soft_time_ctrl.cpp +++ b/host/lib/usrp/usrp1/soft_time_ctrl.cpp @@ -50,13 +50,13 @@ public: /******************************************************************* * Time control ******************************************************************/ - void set_time(const time_spec_t& time) + void set_time(const time_spec_t& time) override { boost::mutex::scoped_lock lock(_update_mutex); _time_offset = uhd::get_system_time() - time; } - time_spec_t get_time(void) + time_spec_t get_time(void) override { boost::mutex::scoped_lock lock(_update_mutex); return time_now(); @@ -80,7 +80,7 @@ public: /******************************************************************* * Receive control ******************************************************************/ - size_t recv_post(rx_metadata_t& md, const size_t nsamps) + size_t recv_post(rx_metadata_t& md, const size_t nsamps) override { boost::mutex::scoped_lock lock(_update_mutex); @@ -125,7 +125,7 @@ public: return nsamps; } - void issue_stream_cmd(const stream_cmd_t& cmd) + void issue_stream_cmd(const stream_cmd_t& cmd) override { _cmd_queue.push_with_wait(std::make_shared<stream_cmd_t>(cmd)); } @@ -139,7 +139,7 @@ public: /******************************************************************* * Transmit control ******************************************************************/ - void send_pre(const tx_metadata_t& md, double& timeout) + void send_pre(const tx_metadata_t& md, double& timeout) override { if (not md.has_time_spec) return; @@ -211,17 +211,17 @@ public: } } - bounded_buffer<async_metadata_t>& get_async_queue(void) + bounded_buffer<async_metadata_t>& get_async_queue(void) override { return _async_msg_queue; } - bounded_buffer<rx_metadata_t>& get_inline_queue(void) + bounded_buffer<rx_metadata_t>& get_inline_queue(void) override { return _inline_msg_queue; } - void stop(void) + void stop(void) override { _recv_cmd_task.reset(); } |