From 333ee0ee85c6e648161cc755ffebf1215f640a36 Mon Sep 17 00:00:00 2001 From: bnicholes Date: Wed, 26 Jun 2002 22:01:02 +0000 Subject: Removed the ReadWrite mutex that protects the stat cache table. Instead implemented separate stat cache tables per processor. This eliminates the lock contention that was occuring each time a cache node expired and had to be refreshed. Having a stat cache per processor may cause some data redundancy but ensures that no other thread will be refreshing a node at the same time a thread is reading it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63523 13f79535-47bb-0310-9956-ffa450edef68 --- include/arch/netware/apr_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/arch/netware/apr_private.h b/include/arch/netware/apr_private.h index da6916313..29d396178 100644 --- a/include/arch/netware/apr_private.h +++ b/include/arch/netware/apr_private.h @@ -170,8 +170,8 @@ int unregister_NLM(void *NLMHandle); /* Application global data management */ int setGlobalPool(void *data); void* getGlobalPool(); -int setStatCache(void *data); -void* getStatCache(); +int setStatCache(void *data, int proc); +void* getStatCache(int proc); /* Redefine malloc to use the library malloc call so that all of the memory resources will be owned -- cgit v1.2.1