diff options
author | Jim Jagielski <jim@apache.org> | 2012-09-18 00:26:28 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2012-09-18 00:26:28 +0200 |
commit | 6e77cfce5144e61d1e9b62cad049bd9cec1ceb50 (patch) | |
tree | 8723d8310e9c68872bd4eabe27e7b58cf15ea649 /include/ap_slotmem.h | |
parent | More consistent return errors... (diff) | |
download | apache2-6e77cfce5144e61d1e9b62cad049bd9cec1ceb50.tar.xz apache2-6e77cfce5144e61d1e9b62cad049bd9cec1ceb50.zip |
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
Diffstat (limited to 'include/ap_slotmem.h')
-rw-r--r-- | include/ap_slotmem.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; |