>From efb6f889257ed8b00a5865697c9c10d6c274aa1a Mon Sep 17 00:00:00 2001
From: Pieter Hintjens
Date: Sat, 2 Oct 2010 03:43:08 +0200
Subject: [PATCH 28/28] Added checking for select, poll, epoll_ctl, kqueue
- define HAVE_FCTNAME in platform.hpp if true
- meant to replace ZMQ_FORCE_EPOLL et al.
Si
Hi Pieter,
> +AC_CHECK_FUNCS(select poll epoll_ctl kqueue)
Thanks for the patch! It still needs some work though.
1. If has to detect dev/poll as well -- this can be done by trying to
open it and checking whether the call succeeds.
2. As for other polling mechanism we need to check whether the
p...@imatix.com said:
> Well, I had to use the correct subject line for a patch... :)
Sure, I just confused by a reply in the original thread talking about a
patch I couldn't see right away :-)
FWIW you can reply to the original thread with a new subject, thus keeping
track of the conversation an
On 10/04/2010 03:36 PM, Martin Lucina wrote:
> I can kind of see where you're going with this; you want to detect the
> polling mechanism in a generic way based off the availability of a system
> call rather than based off a check for a particular OS. This is how things
> would normally be done wi
Well, I had to use the correct subject line for a patch... :)
On 4 Oct 2010 15:37, "Martin Lucina" wrote:
> Pieter,
>
> sorry, I got confused, you started a new thread which is why I didn't
> realise this was related to the "disabling epoll()" thread.
>
> p...@imatix.com said:
>> index f8d2e5e..3b
Pieter,
sorry, I got confused, you started a new thread which is why I didn't
realise this was related to the "disabling epoll()" thread.
p...@imatix.com said:
> index f8d2e5e..3b4fafb 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -365,6 +365,7 @@ AC_SUBST(LIBZMQ_EXTRA_LDFLAGS)
> # Check
Mato,
I wasn't sure that would work. Email clients have various ways of
detecting threads.
Anyhow, I'm happy to make a PoC for runtime detection of poll/select
using these HAVE_FCTNAME macros and some system dependencies, but it'd
be in C, not C++. In any case it'd require some abstraction arou