diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-14 22:13:54 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-14 22:13:54 +0000 |
commit | f34c3ce69ca6ecac9dedf7c13804064b860d8463 (patch) | |
tree | fbd2855b45ff24bead6342375f87fe00abb20a05 /host/lib/transport/udp_zero_copy_asio.cpp | |
parent | 9ee1b33bbc170b2e76fbb5b9a075d6b6c7315a7e (diff) | |
parent | 959669e383c75fdcbd11091466516bd5af66cfb5 (diff) | |
download | uhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.tar.gz uhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.tar.bz2 uhd-f34c3ce69ca6ecac9dedf7c13804064b860d8463.zip |
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/transport/udp_zero_copy_asio.cpp')
-rw-r--r-- | host/lib/transport/udp_zero_copy_asio.cpp | 3 |
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( |