aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2020-10-16 17:58:34 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-10-22 15:02:01 -0500
commita9a88c9cc194f40861028516562f8fe17bb26335 (patch)
tree2dd23cf55e3e394a6382c278c7c7aa4bd5c8e126 /host/lib/rfnoc
parent24154b99a70ca59c8f91f6506370244ee68a0365 (diff)
downloaduhd-a9a88c9cc194f40861028516562f8fe17bb26335.tar.gz
uhd-a9a88c9cc194f40861028516562f8fe17bb26335.tar.bz2
uhd-a9a88c9cc194f40861028516562f8fe17bb26335.zip
multi_usrp: Fix streamer destruction callback
The streamers were keeping a reference to the multi_usrp object, so the object would not destruct when the user deleted or reset the shared pointer to the object. An error would occur if the user attempted to make the same device and get streamers on it without explicitly deleting the streamers first. This change refactors the code such that the streamer destructor only depends on the existence of a weak_ptr to the underlying rfnoc_graph and a vector of edges returned by the connect function. It checks to see if the graph has been deleted before calling the functions to disconnect the edges. This allows the multi_usrp object and streamer objects to be destructed in any order. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/rfnoc')
0 files changed, 0 insertions, 0 deletions