summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-01 20:38:14 -0800
committerJosh Blum <josh@joshknows.com>2011-02-08 12:31:25 -0800
commitfa35192bcb89c6f026d76d7f5190e22341840a47 (patch)
tree24162480b9daac7ad90b58de767f5d07b9acfe86 /host/lib
parent7d277bc30f0b506d5773250bf7ee59ccaa59d832 (diff)
downloaduhd-fa35192bcb89c6f026d76d7f5190e22341840a47.tar.gz
uhd-fa35192bcb89c6f026d76d7f5190e22341840a47.tar.bz2
uhd-fa35192bcb89c6f026d76d7f5190e22341840a47.zip
uhd: potential fix for macos asio recv issue (just disable it)
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 697e172cd..a80de7b87 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -40,6 +40,12 @@ namespace asio = boost::asio;
//Otherwise, the commit callback uses a blocking send.
//#define USE_ASIO_ASYNC_SEND
+//The asio async receive implementation is broken for some macos.
+//Just disable for all macos since we don't know the problem.
+#if defined(UHD_PLATFORM_MACOS) && defined(USE_ASIO_ASYNC_RECV)
+ #undef USE_ASIO_ASYNC_RECV
+#endif
+
//The number of service threads to spawn for async ASIO:
//A single concurrent thread for io_service seems to be the fastest.
//Threads are disabled when no async implementations are enabled.