Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 31248 invoked from network); 9 Feb 2009 11:43:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 11:43:28 -0000 Received: (qmail 13804 invoked by uid 500); 9 Feb 2009 11:43:26 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 13720 invoked by uid 500); 9 Feb 2009 11:43:25 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 13703 invoked by uid 99); 9 Feb 2009 11:43:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 03:43:25 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of trawick@gmail.com designates 209.85.217.21 as permitted sender) Received: from [209.85.217.21] (HELO mail-gx0-f21.google.com) (209.85.217.21) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 11:43:17 +0000 Received: by gxk14 with SMTP id 14so2019521gxk.19 for ; Mon, 09 Feb 2009 03:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=f7zWz98OKzUgUdRyMznPWnhmxItS/MniWJ70oWYdFHI=; b=iqXpBaV0QSF8rArG4ZVem4/tS/w4E3n28YFqKzOnN1NSFUY40m6zx+84oci3AbnK3S pr7GgCqVDsmQu89GlNQ6SAgVrTWs+aF78qCaw5YRso2HxzGniu3+oV/TJJkerOsBfysT EbDtU6ANgPxdEFCZDcgEMKU7AGz6Xcq0nm8lA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qIlk3DyxbYGdyjSxfoseG54IMeTCmwmpzbcdAB4izXzcTQ28dSe65K22aHEE22xJ/y p1eHcvy+vztZ0mom/sYb9TbcMVzxf5HsczyYKh8U9nfd0fTLAX2RTwSsfkWacdI1/Wvr gRKxngc9YFtmfpjjaJT19cp77EYoOU0+ixFnk= MIME-Version: 1.0 Received: by 10.150.98.4 with SMTP id v4mr3272677ybb.161.1234179776951; Mon, 09 Feb 2009 03:42:56 -0800 (PST) In-Reply-To: <498FF67B.3030900@apache.org> References: <498FF67B.3030900@apache.org> Date: Mon, 9 Feb 2009 06:42:56 -0500 Message-ID: Subject: Re: [WIN32] Using WSAPool for Vista+ From: Jeff Trawick To: APR Developer List Content-Type: multipart/alternative; boundary=000e0cd4050431b56f04627adfdb X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd4050431b56f04627adfdb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Feb 9, 2009 at 4:25 AM, Mladen Turk wrote: > That makes me think we can have that generic, allowing > different pollset providers for non-windows platforms > as well (If it makes sense of course), eg. something > like we have for proc_mutex. > (apr_proc_mutex_unix_lock_methods_t would actually become > apr_poll_methods_t allowing choosing different > poll providers, again where it makes sense) I thought (worried) that this might be desired at one point, but I think it is only useful to work around bugs in our implementation or the associated system feature. (Up go the hands of the several people trying to use ab on Leopard ;) Have kqueue/epoll/etc. problematic in general?) I believe it is as simple as: select() vs. poll() is a no-brainer (*never* use the former if you have the latter) poll() vs. kqueue/epoll/etc. for apr_pollset_foo() is similar Mutex methods on the other hand generally have interesting tradeoffs on Unix, and the choice isn't clear. --000e0cd4050431b56f04627adfdb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Feb 9, 2009 at 4:25 AM, Mladen Turk <mturk@apache.org&= gt; wrote:
That makes me think we can have that generic, allowing
different pollset providers for non-windows platforms
as well (If it makes sense of course), eg. something
like we have for proc_mutex.
(apr_proc_mutex_unix_lock_methods_t would actually become
 apr_poll_methods_t allowing choosing different
 poll providers, again where it makes sense)

I thought (worried) that this might be desired at one point, but I t= hink it is only useful to work around bugs in our implementation or the ass= ociated system feature.  (Up go the hands of the several people trying= to use ab on Leopard ;)  Have kqueue/epoll/etc. problematic in genera= l?)

I believe it is as simple as:

= select() vs. poll() is a no-brainer (*never* use the former if you have the= latter)
poll() vs. kqueue/epoll/etc. for apr_pollset_foo() is si= milar

Mutex methods on the other hand generally have interest= ing tradeoffs on Unix, and the choice isn't clear.

--000e0cd4050431b56f04627adfdb--