summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-14 11:56:22 -0700
committerJosh Blum <josh@joshknows.com>2010-07-14 11:56:22 -0700
commita507bc0b4fa2428ae5ebec9fe145e8143289f3d0 (patch)
tree22dae4bcb7788a9243240a431f41b7637ba8b13a
parent0cf6819b46456d6dde3e8dc67a8ea5131e618a4b (diff)
downloaduhd-a507bc0b4fa2428ae5ebec9fe145e8143289f3d0.tar.gz
uhd-a507bc0b4fa2428ae5ebec9fe145e8143289f3d0.tar.bz2
uhd-a507bc0b4fa2428ae5ebec9fe145e8143289f3d0.zip
usrp2: disable buffer resize on platforms that cry about it
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 98451f188..bfbcf62d8 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -161,10 +161,13 @@ template<typename Opt> static void resize_buff_helper(
) % name % MIN_SOCK_BUFF_SIZE << std::endl;
}
+ //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(