aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorsteviez <steve.czabaniuk@ni.com>2020-02-11 09:58:01 -0600
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-02-18 13:36:57 -0600
commit28bf20a19c98c7e99a67d7186d539aea28133df0 (patch)
tree5c7bac0443b40e12cef5392bba8e79af0902fba5 /host/include
parent28ca94661c365007916e05e8c84c3eaa7563c677 (diff)
downloaduhd-28bf20a19c98c7e99a67d7186d539aea28133df0.tar.gz
uhd-28bf20a19c98c7e99a67d7186d539aea28133df0.tar.bz2
uhd-28bf20a19c98c7e99a67d7186d539aea28133df0.zip
rfnoc: actions: Fix uninitialized timestamps
tx_event_action_info objects were being created with uninitialized timestamp members which led to uhd::tx_streamer::recv_async_msg() returning with invalid timestamps
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/actions.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/include/uhd/rfnoc/actions.hpp b/host/include/uhd/rfnoc/actions.hpp
index 7326cfd6d..681a9da3d 100644
--- a/host/include/uhd/rfnoc/actions.hpp
+++ b/host/include/uhd/rfnoc/actions.hpp
@@ -11,6 +11,7 @@
#include <uhd/types/device_addr.hpp>
#include <uhd/types/metadata.hpp>
#include <uhd/types/stream_cmd.hpp>
+#include <boost/optional.hpp>
#include <memory>
#include <string>
#include <vector>
@@ -93,10 +94,12 @@ public:
uint64_t tsf;
//! Factory function
- static sptr make(uhd::async_metadata_t::event_code_t event_code);
+ static sptr make(uhd::async_metadata_t::event_code_t event_code,
+ const boost::optional<uint64_t>& tsf);
protected:
- tx_event_action_info(uhd::async_metadata_t::event_code_t event_code);
+ tx_event_action_info(uhd::async_metadata_t::event_code_t event_code,
+ const boost::optional<uint64_t>& tsf);
};
}} /* namespace uhd::rfnoc */