You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2009/05/15 20:07:17 UTC

svn commit: r775269 - /httpd/httpd/trunk/include/ap_slotmem.h

Author: jim
Date: Fri May 15 18:07:17 2009
New Revision: 775269

URL: http://svn.apache.org/viewvc?rev=775269&view=rev
Log:
"officially" add grab/release to slotmem provider API

Modified:
    httpd/httpd/trunk/include/ap_slotmem.h

Modified: httpd/httpd/trunk/include/ap_slotmem.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/ap_slotmem.h?rev=775269&r1=775268&r2=775269&view=diff
==============================================================================
--- httpd/httpd/trunk/include/ap_slotmem.h (original)
+++ httpd/httpd/trunk/include/ap_slotmem.h Fri May 15 18:07:17 2009
@@ -153,6 +153,20 @@
      * @return size of slot
      */
     apr_size_t (* slot_size)(ap_slotmem_instance_t *s);
+    /**
+     * grab (or alloc) the slot associated with this item_id
+     * @param s ap_slotmem_t to use.
+     * @param item_id item allocate and mark as in-use
+     * @return APR_SUCCESS if all went well
+     */
+    apr_status_t (* grab)(ap_slotmem_instance_t *s, unsigned int item_id);
+    /**
+     * release (or free) the slot associated with this item_id
+     * @param s ap_slotmem_t to use.
+     * @param item_id item free and mark as no longer in-use
+     * @return APR_SUCCESS if all went well
+     */
+    apr_status_t (* release)(ap_slotmem_instance_t *s, unsigned int item_id);
 };
 
 typedef struct ap_slotmem_provider_t ap_slotmem_provider_t;