aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-26 11:27:25 -0800
committerJosh Blum <josh@joshknows.com>2011-01-26 11:27:25 -0800
commitdb1fd30da6def1269eae62b5ccd3c81c28ae000f (patch)
treebfb277c09bbf8f9675710316c927f552875eed36 /host/lib/transport
parentbf25ec24adc6e4d1aa563962452630628dad3215 (diff)
downloaduhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.tar.gz
uhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.tar.bz2
uhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.zip
uhd: fixed maxosx bug, was resizing the transport buffer
but it cant be resized on macos and I messed up the code that blocked that behavior reimplemented block in usrp2_impl, seems more correct here
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 5c049cfad..3826dcd79 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -353,14 +353,10 @@ template<typename Opt> static void resize_buff_helper(
"See the transport application notes on buffer resizing.\n%s"
) % name % min_sock_buff_size % help_message));
}
-
- //only enable on platforms that are happy with the large buffer resize
- #if defined(UHD_PLATFORM_LINUX) || defined(UHD_PLATFORM_WIN32)
//otherwise, ensure that the buffer is at least the minimum size
else if (udp_trans->get_buff_size<Opt>() < min_sock_buff_size){
resize_buff_helper<Opt>(udp_trans, min_sock_buff_size, name);
}
- #endif /*defined(UHD_PLATFORM_LINUX) || defined(UHD_PLATFORM_WIN32)*/
}
udp_zero_copy::sptr udp_zero_copy::make(