From cb89ca70646591a6cb29e81be43c442d6b5d653b Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 15 Apr 2012 07:06:42 +0200 Subject: Honour --with-poller option for synchronous polling While --with-poller configure option could be used for selecting the polling mechanism for I/O threads (asynchronous), synchronous polling (xs_poll, signaler_t) was not affected by the option. This patch uses selected mechanism is it is either 'select' or 'poll'. Othrwise it chooses the mechanism according to the platform. Signed-off-by: Martin Sustrik --- src/signaler.cpp | 4 ++-- src/upoll.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/signaler.cpp b/src/signaler.cpp index af905a3..8832c6b 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -20,9 +20,9 @@ #include "platform.hpp" -#if defined XS_FORCE_SELECT +#if defined XS_HAVE_SELECT #define XS_SIGNALER_WAIT_BASED_ON_SELECT -#elif defined XS_FORCE_POLL +#elif defined XS_HAVE_POLL #define XS_SIGNALER_WAIT_BASED_ON_POLL #elif defined XS_HAVE_LINUX || defined XS_HAVE_FREEBSD ||\ defined XS_HAVE_OPENBSD || defined XS_HAVE_SOLARIS ||\ diff --git a/src/upoll.cpp b/src/upoll.cpp index 9dd13ea..d99deec 100644 --- a/src/upoll.cpp +++ b/src/upoll.cpp @@ -27,9 +27,9 @@ #include "likely.hpp" #include "platform.hpp" -#if defined XS_FORCE_SELECT +#if defined XS_HAVE_SELECT #define XS_POLL_BASED_ON_SELECT -#elif defined XS_FORCE_POLL +#elif defined XS_HAVE_POLL #define XS_POLL_BASED_ON_POLL #elif defined XS_HAVE_LINUX || defined XS_HAVE_FREEBSD ||\ defined XS_HAVE_OPENBSD || defined XS_HAVE_SOLARIS ||\ -- cgit v1.2.3