Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 94262 invoked from network); 27 Jul 2008 01:13:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jul 2008 01:13:00 -0000 Received: (qmail 47245 invoked by uid 500); 27 Jul 2008 01:13:00 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 47214 invoked by uid 500); 27 Jul 2008 01:13:00 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 47203 invoked by uid 99); 27 Jul 2008 01:13:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2008 18:13:00 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2008 01:12:14 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 1402E234C17D; Sat, 26 Jul 2008 18:12:09 -0700 (PDT) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 24325] apr_reslist doesn't work without threads X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR-util X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bojan@rexursive.com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20080727011210.1402E234C17D@brutus.apache.org> Date: Sat, 26 Jul 2008 18:12:09 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=24325 --- Comment #9 from Bojan Smojver 2008-07-26 18:12:09 PST --- > The only reason I brought up enabling apr_reslist in a non-threaded environment was to get a straight-forward interface, so the developer doesn't need to care about OS details; if no threads, apr_reslist transparently drops all the mumbo-jumbo. That's what I've been trying to explain - in its current implementation reslist cannot do that (and I personally don't see why it should). It is up to everyone using reslist to provide such a thing for the other developers/users (i.e. wrap it up with some code). So, if you're building an app, you include apr_reslist.h, because for threaded version of it, you'll need it. Then, inside your code, you have: #if APR_HAS_THREADS do stuff with reslist #else do stuff without reslist #endif Users or developers using your code can't tell the difference when they are interfacing with it whether they are using reslist or not. It just works. If we warn people about inclusion of apr_reslist.h into their code above, we are obviously warning them incorrectly, as they used the right design pattern in their code. No point warning them. How about we mention in the docs that reslist can only be used with threads, so that there is no more confusion? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org