From 654c2fece997c4708dd928625494b8b796d1b2a2 Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Wed, 9 Jan 2019 21:49:49 -0800 Subject: mpmd_impl: move timeout constants to header --- host/lib/usrp/mpmd/mpmd_impl.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 d01605426..b5d559e3e 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -20,6 +20,19 @@ #include #include +/************************************************************************* + * RPC timeout constants for MPMD + ************************************************************************/ +//! Time between reclaims (ms) +static constexpr size_t MPMD_RECLAIM_INTERVAL_MS = 1000; +//! Default timeout value for the init() RPC call (ms) +static constexpr size_t MPMD_DEFAULT_INIT_TIMEOUT = 120000; +//! Default timeout value for RPC calls (ms) +static constexpr size_t MPMD_DEFAULT_RPC_TIMEOUT = 2000; +//! Short timeout value for RPC calls (ms), used for calls that shouldn't +// take long. This value can be used to quickly determine a link status. +static constexpr size_t MPMD_SHORT_RPC_TIMEOUT = 2000; + namespace uhd { namespace mpmd { /*! Stores all attributes specific to a single MPM device -- cgit v1.2.3