diff options
author | Eric Blossom | 2009-09-04 01:51:29 -0700 |
---|---|---|
committer | Eric Blossom | 2009-09-04 01:51:29 -0700 |
commit | e49601b4754da836fece4e869c58b0c9b3e2d8ad (patch) | |
tree | 5b3500ed0e6d2b97d30df602f4d7575808ae4420 /usrp2/host/lib/usrp2_impl.h | |
parent | 072a76710866c7237eb19b21bd71e46c4d98cca8 (diff) | |
download | gnuradio-e49601b4754da836fece4e869c58b0c9b3e2d8ad.tar.gz gnuradio-e49601b4754da836fece4e869c58b0c9b3e2d8ad.tar.bz2 gnuradio-e49601b4754da836fece4e869c58b0c9b3e2d8ad.zip |
Fix race condition that caused commands such as stop_rx_streaming to fail.
This fixes the bulk of the problem. Next step is to drop data packets
while waiting for the reply.
Diffstat (limited to 'usrp2/host/lib/usrp2_impl.h')
-rw-r--r-- | usrp2/host/lib/usrp2_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp2/host/lib/usrp2_impl.h b/usrp2/host/lib/usrp2_impl.h index ec96f3a70..434e0e9b1 100644 --- a/usrp2/host/lib/usrp2_impl.h +++ b/usrp2/host/lib/usrp2_impl.h @@ -105,7 +105,8 @@ namespace usrp2 { void stop_bg(); void init_config_rx_v2_cmd(op_config_rx_v2_cmd *cmd); void init_config_tx_v2_cmd(op_config_tx_v2_cmd *cmd); - bool transmit_cmd(void *cmd, size_t len, pending_reply *p, double secs=0.0); + bool transmit_cmd_and_wait(void *cmd, size_t len, pending_reply *p, double secs=0.0); + bool transmit_cmd(void *cmd, size_t len); virtual data_handler::result operator()(const void *base, size_t len); data_handler::result handle_control_packet(const void *base, size_t len); data_handler::result handle_data_packet(const void *base, size_t len); |