Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 22284 invoked by uid 500); 31 May 2001 18:07:26 -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 18284 invoked from network); 31 May 2001 18:01:16 -0000 X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawickj@bellsouth.net using -f Sender: trawick@bellsouth.net To: dev@apr.apache.org Subject: Re: cvs commit: apr/test testlock.c .cvsignore Makefile.in References: <20010531033007.37705.qmail@apache.org> From: Jeff Trawick Date: 31 May 2001 13:57:57 -0400 In-Reply-To: <20010531033007.37705.qmail@apache.org> Message-ID: Lines: 52 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N jerenkrantz@apache.org writes: > Implement read write locks. This commit will support POSIX pthread > rw locks on Unix platforms. This is based on earlier patches that I > posted to apr-dev, but did not receive feedback from others on. > Hence, I'm committing. ... > Index: configure.in > =================================================================== > RCS file: /home/cvs/apr/configure.in,v > retrieving revision 1.309 > retrieving revision 1.310 > diff -u -r1.309 -r1.310 > --- configure.in 2001/05/18 02:35:51 1.309 > +++ configure.in 2001/05/31 03:29:51 1.310 > @@ -280,7 +280,7 @@ > if test "$pthreadh" = "1"; then > APR_CHECK_PTHREAD_GETSPECIFIC_TWO_ARGS > APR_CHECK_PTHREAD_ATTR_GETDETACHSTATE_ONE_ARG > - AC_CHECK_FUNCS(pthread_key_delete) > + AC_CHECK_FUNCS(pthread_key_delete pthread_rwlock_init) > fi > fi With RedHat 6.0, it seems that __USE_UNIX98 must be turned on in order for the pthread_rwlock_t to be defined. I think more autoconf is needed here. (If nobody else gets to it, I'll handle but no timeframe promised :) I'm behind with too many promises already.) > Index: locks.h > =================================================================== > RCS file: /home/cvs/apr/include/arch/unix/locks.h,v > retrieving revision 1.26 > retrieving revision 1.27 > diff -u -r1.26 -r1.27 > --- locks.h 2001/02/25 20:39:32 1.26 > +++ locks.h 2001/05/31 03:29:54 1.27 > @@ -130,9 +130,12 @@ > #if APR_USE_PTHREAD_SERIALIZE > pthread_mutex_t *intraproc; > #endif > +#ifdef HAVE_PTHREAD_RWLOCK_INIT > + pthread_rwlock_t rwlock; This is what fails to compile with RH 6.0. We found pthread_rwlock_init() but didn't test for pthread_rwlock_t without/with __USE_UNIX98. -- Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...