diff options
author | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2002-06-26 22:01:02 +0000 |
---|---|---|
committer | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2002-06-26 22:01:02 +0000 |
commit | 333ee0ee85c6e648161cc755ffebf1215f640a36 (patch) | |
tree | 936b0ef4a887132f5099cc84617b0b06c16f3ffb /include/arch/netware/apr_private.h | |
parent | 9b95ce3a0d8308a6d5e2b50f9bb9555fd16c12a1 (diff) | |
download | libapr-333ee0ee85c6e648161cc755ffebf1215f640a36.tar.gz |
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
Diffstat (limited to 'include/arch/netware/apr_private.h')
-rw-r--r-- | include/arch/netware/apr_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |