From 27158ba99dd2b417180ca0344d32c81917d4cb71 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 1 Jun 2009 14:15:48 +0000 Subject: [PATCH] Align doccos with code and clarify: grab tries to find a free slot and returns that git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@780656 13f79535-47bb-0310-9956-ffa450edef68 --- include/ap_slotmem.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ap_slotmem.h b/include/ap_slotmem.h index 0705e92a96..816768ed2e 100644 --- a/include/ap_slotmem.h +++ b/include/ap_slotmem.h @@ -124,7 +124,7 @@ struct ap_slotmem_provider_t { */ apr_status_t (* dptr)(ap_slotmem_instance_t *s, unsigned int item_id, void**mem); /** - * get/read the memory associated with this worker slot. + * get/read the data associated with this worker slot. * @param s ap_slotmem_instance_t to use. * @param item_id item to return for 0 to item_num * @param dest address to store the data @@ -133,7 +133,7 @@ struct ap_slotmem_provider_t { */ apr_status_t (* get)(ap_slotmem_instance_t *s, unsigned int item_id, unsigned char *dest, apr_size_t dest_len); /** - * put/write the memory associated with this worker slot. + * put/write the data associated with this worker slot. * @param s ap_slotmem_instance_t to use. * @param item_id item to return for 0 to item_num * @param src address of the data to store in the slot @@ -154,16 +154,16 @@ struct ap_slotmem_provider_t { */ apr_size_t (* slot_size)(ap_slotmem_instance_t *s); /** - * grab (or alloc) the slot associated with this item_id + * grab (or alloc) a free slot * @param s ap_slotmem_instance_t to use. - * @param item_id item allocate and mark as in-use + * @param item_id the available slot id and marked as in-use * @return APR_SUCCESS if all went well */ - apr_status_t (* grab)(ap_slotmem_instance_t *s, unsigned int item_id); + 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_instance_t to use. - * @param item_id item free and mark as no longer in-use + * @param item_id slot id to 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); -- 2.40.0