diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-12-17 11:20:10 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-10 14:55:25 -0600 |
commit | 4725e97c6d6baa82d414ea89623ca32732d9bea1 (patch) | |
tree | 75a426d8f4cb4f91ba5fc84977e9e013394947d1 /mpm/python/usrp_mpm | |
parent | d33deb3cae1f231000745dd077d339dcb004e97b (diff) | |
download | uhd-4725e97c6d6baa82d414ea89623ca32732d9bea1.tar.gz uhd-4725e97c6d6baa82d414ea89623ca32732d9bea1.tar.bz2 uhd-4725e97c6d6baa82d414ea89623ca32732d9bea1.zip |
rfnoc: transport: Check if streamers are connected in send() and recv()
This adds a check in send() and recv() whether or not the streamer is
actually connected. If not, an exception is thrown with the message:
[rx_stream] Attempting to call recv() before all channels are connected!
or
[tx_stream] Attempting to call send() before all channels are connected!
The check is a single boolean flag check, but it does add a branch in
our hot code. Since this event is unlikely, and only happens in badly
configured apps, we will get some help from the CPUs branch prediction
to reduce the additional cost of this check.
Diffstat (limited to 'mpm/python/usrp_mpm')
0 files changed, 0 insertions, 0 deletions