apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject [PATCH] remove unused lock in memory/unix/apr_pools.c
Date Sun, 02 Sep 2001 17:42:35 GMT
This lock isn't doing anything. Was it intended to be used, or is it
just a leftover from 1.3?

This patch removes the lock.

-aaron


Index: srclib/apr/memory/unix/apr_pools.c
===================================================================
RCS file: /home/cvspublic/apr/memory/unix/apr_pools.c,v
retrieving revision 1.108
diff -u -r1.108 apr_pools.c
--- srclib/apr/memory/unix/apr_pools.c	2001/08/13 04:20:19	1.108
+++ srclib/apr/memory/unix/apr_pools.c	2001/09/02 17:38:13
@@ -252,7 +252,6 @@
 
 #if APR_HAS_THREADS
 static apr_lock_t *alloc_mutex;
-static apr_lock_t *spawn_mutex;
 #endif
 
 #ifdef APR_POOL_DEBUG
@@ -830,11 +829,6 @@
     if (status != APR_SUCCESS) {
         return status;
     }
-    status = apr_lock_create(&spawn_mutex, APR_MUTEX, APR_INTRAPROCESS,
-                   NULL, globalp);
-    if (status != APR_SUCCESS) {
-        return status;
-    }
 #endif
     permanent_pool = globalp;
 
@@ -849,9 +843,7 @@
 {
 #if APR_HAS_THREADS
     apr_lock_destroy(alloc_mutex);
-    apr_lock_destroy(spawn_mutex);
     alloc_mutex = NULL;
-    spawn_mutex = NULL;
 #endif
     apr_pool_destroy(globalp);
 }

Mime
View raw message