Return-Path: Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Delivered-To: mailing list dev@apr.apache.org Received: (qmail 41820 invoked from network); 1 Dec 2000 14:36:15 -0000 Received: from 3ff8faf3.dsl.flashcom.net (HELO koj.covalent.net) (63.248.250.243) by locus.apache.org with SMTP; 1 Dec 2000 14:36:15 -0000 Received: from rbb (helo=localhost) by koj.covalent.net with local-esmtp (Exim 3.16 #1) id 141rKR-0008SE-00; Fri, 01 Dec 2000 06:38:23 -0800 Date: Fri, 1 Dec 2000 06:38:23 -0800 (PST) From: rbb@covalent.net X-Sender: rbb@koj.rkbloom.net To: dev@apr.apache.org cc: apr-cvs@apache.org Subject: Re: cvs commit: apr/locks/unix locks.c In-Reply-To: <20001201140055.5665.qmail@locus.apache.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > Modified: . configure.in hints.m4 CHANGES > include apr.h.in apr.hw > locks/unix locks.c > Log: > New config variable apr_process_lock_is_global specifies that the selected > inter-process lock method is sufficient for APR_LOCKALL (i.e., it blocks > all threads and processes). For now, hints.m4 turns on this flag for > OS/390. MHO this was put in the wrong place. This is an internal APR flag, and should not be in apr.h at all. Really what this is, is an optimization, so that we don't create an intraprocess lock if the cross-process lock will lock the threads. Locks and how they are setup was an area of great contention between Manoj and myself when I was designing them, because of lockall and cross-process locks. I am favor of this concept, but I would like the definition hidden from the program using APR, because I think it just confuses things. The program should feel free to choose the correct lock type based on need, so it they need lockall, then they should just choose lockall, and not try to second guess APR, that cross-process would also work. This patch opens the way for people to try to second guess the code. Just to be clear again, ++1 on the concept just wouldd like the def moved from apr.h to apr_private.h (also requires backing out the Apache change). Ryan _______________________________________________________________________________ Ryan Bloom rbb@apache.org 406 29th St. San Francisco, CA 94131 -------------------------------------------------------------------------------