From 6e77cfce5144e61d1e9b62cad049bd9cec1ceb50 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 17 Sep 2012 22:26:28 +0000 Subject: Allow for a forced grab of a slotmem slot. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1386880 13f79535-47bb-0310-9956-ffa450edef68 --- include/ap_slotmem.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/ap_slotmem.h') diff --git a/include/ap_slotmem.h b/include/ap_slotmem.h index 496f455e69..229aa713f4 100644 --- a/include/ap_slotmem.h +++ b/include/ap_slotmem.h @@ -175,6 +175,13 @@ struct ap_slotmem_provider_t { * @return APR_SUCCESS if all went well */ apr_status_t (* release)(ap_slotmem_instance_t *s, unsigned int item_id); + /** + * forced grab (or alloc) a slot associated with this item_id + * @param s ap_slotmem_instance_t to use. + * @param item_id to the specified slot id and marked as in-use + * @return APR_SUCCESS if all went well + */ + apr_status_t (* fgrab)(ap_slotmem_instance_t *s, unsigned int item_id); }; typedef struct ap_slotmem_provider_t ap_slotmem_provider_t; -- cgit v1.2.3