From 05a1d378ee7185e79fb3d39c923a1a30bc1db8ce Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Fri, 15 May 2009 18:07:17 +0000 Subject: [PATCH] "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 --- include/ap_slotmem.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/ap_slotmem.h b/include/ap_slotmem.h index 3e957dab6e..48cd549da6 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; -- 2.50.1