diff options
author | mturk <mturk@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-07 06:10:30 +0000 |
---|---|---|
committer | mturk <mturk@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-07 06:10:30 +0000 |
commit | a0a88faf0f58892545c5dc0f04b25f21a49853c7 (patch) | |
tree | 71902d29c1d154ac5354fcf30432aed2d26f30fb | |
parent | 8c52fb52638c7e60c3d039ca97f4411f5f282253 (diff) | |
download | libapr-util-a0a88faf0f58892545c5dc0f04b25f21a49853c7.tar.gz |
Export internal reslist_maint as public apr_reslist_maintain
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@683523 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/apr_reslist.h | 6 | ||||
-rw-r--r-- | misc/apr_reslist.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/apr_reslist.h b/include/apr_reslist.h index 51c545b3..70037b69 100644 --- a/include/apr_reslist.h +++ b/include/apr_reslist.h @@ -138,6 +138,12 @@ APU_DECLARE(apr_uint32_t) apr_reslist_acquired_count(apr_reslist_t *reslist); APU_DECLARE(apr_status_t) apr_reslist_invalidate(apr_reslist_t *reslist, void *resource); +/** + * Perform routine maintenance on the resource list. This call + * may instantiate new resources or expire old resources. + * @param reslist The resource list. + */ +APU_DECLARE(apr_status_t) apr_reslist_maintain(apr_reslist_t *reslist); #ifdef __cplusplus } diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c index 163f7f3d..ef452838 100644 --- a/misc/apr_reslist.c +++ b/misc/apr_reslist.c @@ -173,7 +173,7 @@ static apr_status_t reslist_cleanup(void *data_) * Perform routine maintenance on the resource list. This call * may instantiate new resources or expire old resources. */ -static apr_status_t reslist_maint(apr_reslist_t *reslist) +APU_DECLARE(apr_status_t) apr_reslist_maintain(apr_reslist_t *reslist) { apr_time_t now; apr_status_t rv; @@ -302,7 +302,7 @@ APU_DECLARE(apr_status_t) apr_reslist_create(apr_reslist_t **reslist, } #endif - rv = reslist_maint(rl); + rv = apr_reslist_maintain(rl); if (rv != APR_SUCCESS) { /* Destroy what we've created so far. */ @@ -427,7 +427,7 @@ APU_DECLARE(apr_status_t) apr_reslist_release(apr_reslist_t *reslist, apr_thread_mutex_unlock(reslist->listlock); #endif - return reslist_maint(reslist); + return apr_reslist_maintain(reslist); } APU_DECLARE(void) apr_reslist_timeout_set(apr_reslist_t *reslist, |