summaryrefslogtreecommitdiffstats
path: root/modules/mappers/mod_rewrite.h
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-10-21 03:24:35 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-10-21 03:24:35 +0200
commit9234f5368e1f1028202f27443a589a81a0b6f3a3 (patch)
tree095c58f0917990448b39ab88e5a2b1cdc1425cb7 /modules/mappers/mod_rewrite.h
parent Simplified mod_env's directives to behave as most directives are (diff)
downloadapache2-9234f5368e1f1028202f27443a589a81a0b6f3a3.tar.xz
apache2-9234f5368e1f1028202f27443a589a81a0b6f3a3.zip
Thread saftey lock for mod_rewrite's cache... I'm sure others will have
some 'better ideas' but this will work for now. Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91612 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_rewrite.h')
-rw-r--r--modules/mappers/mod_rewrite.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mappers/mod_rewrite.h b/modules/mappers/mod_rewrite.h
index 4458575c6e..56a85a1801 100644
--- a/modules/mappers/mod_rewrite.h
+++ b/modules/mappers/mod_rewrite.h
@@ -112,6 +112,9 @@
#include <sys/types.h>
#endif
+#if APR_HAS_THREADS
+#include "apr_lock.h"
+#endif
#include "ap_config.h"
/* Include from the Apache server ... */
@@ -322,6 +325,9 @@ typedef struct cachelist {
typedef struct cache {
apr_pool_t *pool;
apr_array_header_t *lists;
+#if APR_HAS_THREADS
+ apr_lock_t *lock;
+#endif
} cache;