apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@cnet.com>
Subject [PATCH/CONTRIB] Shared Mem Hash Table
Date Thu, 05 Jul 2001 04:01:35 GMT
This implements a hash table using shared memory.
Limitations:
    * doesn't have a freelist, so deletes aren't reclaimed
    * and can't expand it's size (dont know how to implement this with 
current shared memory system)
    * no locking (yet)
It is intended for use in modules having a large config requirements
(Patches inline, extra files attached)

It is intented that apr_shm_hash.c will live in apr/tables
    apr_shm_hash.h in apr/include
&
    testhash.c in apr/test

Index: tables/Makefile.in
===================================================================
RCS file: /home/cvspublic/apr/tables/Makefile.in,v
retrieving revision 1.6
diff -u -u -r1.6 Makefile.in
--- tables/Makefile.in  2001/01/09 11:06:18     1.6
+++ tables/Makefile.in  2001/07/05 03:53:02
@@ -1,5 +1,5 @@

-TARGETS = apr_tables.lo apr_hash.lo
+TARGETS = apr_tables.lo apr_hash.lo apr_shm_hash.lo

 # bring in rules.mk for standard functionality
 @INCLUDE_RULES@
Index: test/Makefile.in
===================================================================
RCS file: /home/cvspublic/apr/test/Makefile.in,v
retrieving revision 1.57
diff -u -u -r1.57 Makefile.in
--- test/Makefile.in    2001/06/15 20:04:39     1.57
+++ test/Makefile.in    2001/07/05 03:53:02
@@ -25,7 +25,8 @@
         testpoll@EXEEXT@ \
         testmem@EXEEXT@ \
        occhild@EXEEXT@ \
-        teststr@EXEEXT@
+    teststr@EXEEXT@ \
+       testhash@EXEEXT@

 TARGETS = $(PROGRAMS)

@@ -125,5 +126,8 @@

 teststr@EXEEXT@: teststr.lo $(LOCAL_LIBS)
        $(LINK) teststr.lo $(LOCAL_LIBS) $(ALL_LIBS)
+
+testhash@EXEEXT@: testhash.lo $(LOCAL_LIBS)
+       $(LINK) testhash.lo $(LOCAL_LIBS) $(ALL_LIBS)

 # DO NOT REMOVE


Mime
View raw message