From 4e2fd551ad48e1ee13d2b7a203f624dd828c2c3b Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Thu, 26 Apr 2018 14:48:13 -0700 Subject: 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. --- host/lib/usrp/mpmd/mpmd_impl.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp/mpmd/mpmd_impl.hpp') 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 -- cgit v1.2.3