Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 94554 invoked from network); 19 Jul 2005 08:38:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jul 2005 08:38:52 -0000 Received: (qmail 94339 invoked by uid 500); 19 Jul 2005 08:38:50 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 94228 invoked by uid 500); 19 Jul 2005 08:38:47 -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 93873 invoked by uid 99); 19 Jul 2005 08:38:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 01:38:44 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [67.18.136.114] (HELO constant.northnitch.com) (67.18.136.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 01:38:39 -0700 Received: from localhost (localhost.northnitch.com [127.0.0.1]) by constant.northnitch.com (Postfix) with ESMTP id 785545C29; Tue, 19 Jul 2005 03:38:41 -0500 (CDT) Received: from constant.northnitch.com ([127.0.0.1]) by localhost (constant.northnitch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91053-10; Tue, 19 Jul 2005 03:38:41 -0500 (CDT) Received: by constant.northnitch.com (Postfix, from userid 1004) id 1448E5C1B; Tue, 19 Jul 2005 03:38:41 -0500 (CDT) Received: from dhcp-215-248.onsite.apachecon.com (dhcp-215-248.onsite.apachecon.com [129.143.215.248]) by paul.querna.org (Horde MIME library) with HTTP; Tue, 19 Jul 2005 03:38:40 -0500 Message-ID: <20050719033840.6h8tv6vvms4gc0ko@paul.querna.org> Date: Tue, 19 Jul 2005 03:38:40 -0500 From: chip@force-elite.com To: Brian Pane Cc: dev@apr.apache.org Subject: Re: apr_pollset multithread semantics? References: <1A8FA40C-CAD4-43D9-AB7E-D86F85D6776E@apache.org> <20050718124121.GB9166@redhat.com> <269CFDEE-BF7D-4317-BDDB-580D73C1CDF3@apache.org> In-Reply-To: <269CFDEE-BF7D-4317-BDDB-580D73C1CDF3@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Virus-Scanned: by amavisd-new at constant.northnitch.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Quoting Brian Pane : > On Jul 18, 2005, at 5:41 AM, Joe Orton wrote: > >> On Sun, Jul 17, 2005 at 07:20:10PM -0700, Brian Pane wrote: >> >>> For implementations of apr_pollset that support the >>> APR_POLLSET_THREADSAFE option to apr_pollset_create(), what's supposed >>> to happen if thread T1 adds a descriptor to a pollset while thread T2 >>> is blocked in a call to apr_pollset_poll() for the same pollset? >>> >> >> I had actually presumed it would be OK to leave the behaviour as not >> explicitly defined, but I can see it would certainly be useful to be >> able to rely on your (A) case below if that can actually be guaranteed. > > Yes indeed, (A) or even (B) can be very useful when designing, say, > httpd MPMs. :-) Yes, as part of the design, I relied upon that fact that all of our supported backend APIs use bahavoir (A). I think we should add this behavoir to the documentation, explicitly. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.