From 00c306d5c441e60e7dfd2516e05e4e433977ecee Mon Sep 17 00:00:00 2001 From: Samuel O'Brien Date: Fri, 24 Jul 2020 08:35:35 -0500 Subject: sim: Integrate simulator into UHD This commit adds a device::register_device which allows uhd to start up a simulator when uhd is called with the arguments type=sim. Creating the device object creates a subprocess using pybind and an embedded interpreter, and destroying the object cleans up those subprocesses. Signed-off-by: Samuel O'Brien --- host/lib/usrp/mpmd/mpmd_impl.hpp | 4 ++++ 1 file changed, 4 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 06b452724..364978fd7 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -227,6 +227,10 @@ public: return _mb.at(mb_idx)->get_mb_iface(); } +protected: + //! Destroys the mboard_impls and the device_tree + void _deinit(); + private: /************************************************************************* * Private methods/helpers -- cgit v1.2.3