diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-04-26 14:48:13 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-30 14:36:29 -0700 |
commit | 4e2fd551ad48e1ee13d2b7a203f624dd828c2c3b (patch) | |
tree | fb0cba98fe03f812385fcc6618c635bd792b99ed /host/lib/usrp/mpmd/mpmd_impl.hpp | |
parent | bd147765003dd3aa810f152f0c38277ac86bdf4a (diff) | |
download | uhd-4e2fd551ad48e1ee13d2b7a203f624dd828c2c3b.tar.gz uhd-4e2fd551ad48e1ee13d2b7a203f624dd828c2c3b.tar.bz2 uhd-4e2fd551ad48e1ee13d2b7a203f624dd828c2c3b.zip |
mpmd: Use separate rpc connection for claim loop
We need a separate RPC connection for the claim loop such that it is not
blocked by other long executions of rpc calls.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_impl.hpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp index 0a5ed4545..5efece5d0 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -127,6 +127,9 @@ class mpmd_mboard_impl void set_timeout_default(); private: + /*! Reference to the RPC client that handles claiming + */ + uhd::rpc_client::sptr _claim_rpc; /************************************************************************* * Private methods ************************************************************************/ @@ -137,9 +140,15 @@ class mpmd_mboard_impl */ bool claim(); + /*! Set RPC client timeout value + * + * \param timeout_ms time limit (in ms) that a rpc client waits for a single call + */ + void set_rpcc_timeout( + const uint64_t timeout_ms + ); + uhd::task::sptr claim_device_and_make_task( - uhd::rpc_client::sptr rpc, - const uhd::device_addr_t mb_args ); /*! Read out the log buffer from the MPM device and send it to native |