From: Jim Jagielski Date: Fri, 15 May 2009 18:07:17 +0000 (+0000) Subject: "officially" add grab/release to slotmem provider API X-Git-Tag: 2.3.3~568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05a1d378ee7185e79fb3d39c923a1a30bc1db8ce;p=thirdparty%2Fapache%2Fhttpd.git "officially" add grab/release to slotmem provider API git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@775269 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/ap_slotmem.h b/include/ap_slotmem.h index 3e957dab6ec..48cd549da6f 100644 --- a/include/ap_slotmem.h +++ b/include/ap_slotmem.h @@ -153,6 +153,20 @@ struct ap_slotmem_provider_t { * @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;