You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2008/08/07 08:10:30 UTC
svn commit: r683523 - in /apr/apr-util/trunk: include/apr_reslist.h
misc/apr_reslist.c
Author: mturk
Date: Wed Aug 6 23:10:30 2008
New Revision: 683523
URL: http://svn.apache.org/viewvc?rev=683523&view=rev
Log:
Export internal reslist_maint as public apr_reslist_maintain
Modified:
apr/apr-util/trunk/include/apr_reslist.h
apr/apr-util/trunk/misc/apr_reslist.c
Modified: apr/apr-util/trunk/include/apr_reslist.h
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/include/apr_reslist.h?rev=683523&r1=683522&r2=683523&view=diff
==============================================================================
--- apr/apr-util/trunk/include/apr_reslist.h (original)
+++ apr/apr-util/trunk/include/apr_reslist.h Wed Aug 6 23:10:30 2008
@@ -138,6 +138,12 @@
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
}
Modified: apr/apr-util/trunk/misc/apr_reslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_reslist.c?rev=683523&r1=683522&r2=683523&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Wed Aug 6 23:10:30 2008
@@ -173,7 +173,7 @@
* 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 @@
}
#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 @@
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,