aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_zero_copy.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-10 13:58:38 -0800
committerJosh Blum <josh@joshknows.com>2011-02-10 13:58:38 -0800
commit1be2590962669f307dce24ccb0b0011b3f3f25f5 (patch)
treebebf7fe400e2b794809a9c34a58105d1ed64b8d2 /host/lib/transport/libusb1_zero_copy.cpp
parent1daf74483ed3e5e5a70f856aecefa96f30b2cbc2 (diff)
downloaduhd-1be2590962669f307dce24ccb0b0011b3f3f25f5.tar.gz
uhd-1be2590962669f307dce24ccb0b0011b3f3f25f5.tar.bz2
uhd-1be2590962669f307dce24ccb0b0011b3f3f25f5.zip
uhd: tweaks to bounded buffer
Added push with haste. Call with haste first in the wait methods to avoid time compare/wait when not needed. Added new calls to the libusb and udp zero copy impls tests pass
Diffstat (limited to 'host/lib/transport/libusb1_zero_copy.cpp')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index ca37f351f..6fab5ae6f 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -132,7 +132,7 @@ static void callback(libusb_transfer *lut){
* \param pointer to libusb_transfer
*/
void usb_endpoint::callback_handle_transfer(libusb_transfer *lut){
- _completed_list.push_with_wait(lut);
+ _completed_list.push_with_haste(lut);
}
@@ -161,7 +161,7 @@ usb_endpoint::usb_endpoint(
//input luts are immediately submitted to be filled
//output luts go into the completed list as free buffers
if (_input) this->submit(_all_luts.back());
- else _completed_list.push_with_wait(_all_luts.back());
+ else _completed_list.push_with_haste(_all_luts.back());
}
}