apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject [PATCH] fix rwlock decl warning
Date Mon, 01 Oct 2001 16:09:40 GMT
This patch was discussed on dev@apr. We are providing two sets of rwlock
functions for UNIX: the original simply uses pthread_rwlock* functions
directly, the other will be implemented for operating systems that do
not provide a pthread rwlock API (like Solaris 2.6).

This patch removes a spurrious function definition in the
stub implementation.  We don't need it because we have
apr_thread_rwlock_rdlock() and apr_thread_rwlock_wrlock().

-aaron


Index: srclib/apr/locks/unix/thread_rwlock.c
===================================================================
RCS file: /home/cvspublic/apr/locks/unix/thread_rwlock.c,v
retrieving revision 1.4
diff -u -r1.4 thread_rwlock.c
--- srclib/apr/locks/unix/thread_rwlock.c	2001/09/29 14:14:07	1.4
+++ srclib/apr/locks/unix/thread_rwlock.c	2001/10/01 16:01:42
@@ -220,11 +220,6 @@
     return APR_ENOTIMPL;
 }
 
-APR_DECLARE(apr_status_t) apr_thread_rwlock_lock(apr_thread_rwlock_t *rwlock)
-{
-    return APR_ENOTIMPL;
-}
-
 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock)
 {
     return APR_ENOTIMPL;

Mime
View raw message