From dev-return-5770-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Feb 18 01:19:49 2002 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 24023 invoked by uid 500); 18 Feb 2002 01:19:49 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 24012 invoked from network); 18 Feb 2002 01:19:48 -0000 Date: Sun, 17 Feb 2002 17:19:56 -0800 From: Aaron Bannert To: dev@apr.apache.org Subject: Re: cvs commit: apr/locks/win32 global_mutex.c Message-ID: <20020217171956.E23835@clove.org> Mail-Followup-To: Aaron Bannert , dev@apr.apache.org References: <20020218011604.21665.qmail@icarus.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020218011604.21665.qmail@icarus.apache.org> User-Agent: Mutt/1.3.23i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, Feb 18, 2002 at 01:16:04AM -0000, aaron@apache.org wrote: > aaron 02/02/17 17:16:04 > > Modified: test Makefile.in > locks/beos Makefile.in > locks/os2 Makefile.in > locks/unix Makefile.in > Added: include apr_global_mutex.h > include/arch/unix global_mutex.h > test testglobalmutex.c > locks/beos global_mutex.c > locks/netware global_mutex.c > locks/os2 global_mutex.c > locks/unix global_mutex.c > locks/win32 global_mutex.c > Log: > Add a new lock API: apr_global_mutex_t > This is analog to the APR_LOCKALL method of apr_lock_t, and provides > cross-process AND cross-thread mutual exclusion. > > I have provided a simple test (based on testprocmutex.c) and stubs > for non-Unix platforms. The implementation of this on Unix is fairly simple (much more so thant I thought it would be :), and I suspect it may be even easier on other platforms. Please review and test this on your platform. -aaron