D7net Mini Sh3LL v1
Current File : //libx32/../share/doc/fwupd/../libvorbis0a/../libaprutil1-dev/html/group___a_p_r___util___r_l.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Portable Runtime Utility Library: Resource List Routines</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime Utility Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Resource List Routines<div class="ingroups"><a class="el" href="group___a_p_r___util.html">APR Utility Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Resource List Routines:</div>
<div class="dyncontent">
<div class="center"><img src="group___a_p_r___util___r_l.png" border="0" usemap="#group______a__p__r______util______r__l" alt=""/></div>
<!-- MAP 0 -->
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gae442d99e6a2eef4a4957f0360822fcac"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gae442d99e6a2eef4a4957f0360822fcac">APR_RESLIST_CLEANUP_DEFAULT</a>   0</td></tr>
<tr class="separator:gae442d99e6a2eef4a4957f0360822fcac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad93b2c229d154c8f6a5c9dfcd7488756"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gad93b2c229d154c8f6a5c9dfcd7488756">APR_RESLIST_CLEANUP_FIRST</a>   1</td></tr>
<tr class="separator:gad93b2c229d154c8f6a5c9dfcd7488756"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga670f6719dfeffe1037e063eaab7b82ac"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a></td></tr>
<tr class="separator:ga670f6719dfeffe1037e063eaab7b82ac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga57065208a6925b61f5ca96ade452a3d6"><td class="memItemLeft" align="right" valign="top"><a id="ga57065208a6925b61f5ca96ade452a3d6"></a>
typedef apr_status_t(* </td><td class="memItemRight" valign="bottom"><b>apr_reslist_constructor</b>) (void **resource, void *params, apr_pool_t *pool)</td></tr>
<tr class="separator:ga57065208a6925b61f5ca96ade452a3d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab642eccd03379810b6beb1e7bf009dad"><td class="memItemLeft" align="right" valign="top"><a id="gab642eccd03379810b6beb1e7bf009dad"></a>
typedef apr_status_t(* </td><td class="memItemRight" valign="bottom"><b>apr_reslist_destructor</b>) (void *resource, void *params, apr_pool_t *pool)</td></tr>
<tr class="separator:gab642eccd03379810b6beb1e7bf009dad"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga608ebcddce542603a7f1d3cf51ae8d3c"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#ga608ebcddce542603a7f1d3cf51ae8d3c">apr_reslist_create</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> **reslist, int min, int smax, int hmax, apr_interval_time_t ttl, apr_reslist_constructor con, apr_reslist_destructor de, void *params, apr_pool_t *pool)</td></tr>
<tr class="separator:ga608ebcddce542603a7f1d3cf51ae8d3c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga103e0cbac6c5da7cb93d4e52799233cb"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#ga103e0cbac6c5da7cb93d4e52799233cb">apr_reslist_destroy</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist)</td></tr>
<tr class="separator:ga103e0cbac6c5da7cb93d4e52799233cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadfbb592b31ff9215f45d3280636e41d7"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gadfbb592b31ff9215f45d3280636e41d7">apr_reslist_acquire</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist, void **resource)</td></tr>
<tr class="separator:gadfbb592b31ff9215f45d3280636e41d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf65ca1701994a0323df639cdb4a8d8b2"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gaf65ca1701994a0323df639cdb4a8d8b2">apr_reslist_release</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist, void *resource)</td></tr>
<tr class="separator:gaf65ca1701994a0323df639cdb4a8d8b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafe06c964d04a568f2625fb5a9ba7bad6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gafe06c964d04a568f2625fb5a9ba7bad6">apr_reslist_timeout_set</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist, apr_interval_time_t timeout)</td></tr>
<tr class="separator:gafe06c964d04a568f2625fb5a9ba7bad6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac37fbbcbc8a98ba9ed017638a2c6c1b7"><td class="memItemLeft" align="right" valign="top">apr_uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gac37fbbcbc8a98ba9ed017638a2c6c1b7">apr_reslist_acquired_count</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist)</td></tr>
<tr class="separator:gac37fbbcbc8a98ba9ed017638a2c6c1b7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga346c0604115a9659cf23ed0cc781f7a9"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#ga346c0604115a9659cf23ed0cc781f7a9">apr_reslist_invalidate</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist, void *resource)</td></tr>
<tr class="separator:ga346c0604115a9659cf23ed0cc781f7a9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa13a7724a30b5a37ac13548bd8dc56f6"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#gaa13a7724a30b5a37ac13548bd8dc56f6">apr_reslist_maintain</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist)</td></tr>
<tr class="separator:gaa13a7724a30b5a37ac13548bd8dc56f6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7e8adfc4b12ffb63c6795d8d79ee5e95"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_l.html#ga7e8adfc4b12ffb63c6795d8d79ee5e95">apr_reslist_cleanup_order_set</a> (<a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist, apr_uint32_t mode)</td></tr>
<tr class="separator:ga7e8adfc4b12ffb63c6795d8d79ee5e95"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gae442d99e6a2eef4a4957f0360822fcac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae442d99e6a2eef4a4957f0360822fcac">◆ </a></span>APR_RESLIST_CLEANUP_DEFAULT</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define APR_RESLIST_CLEANUP_DEFAULT   0</td>
</tr>
</table>
</div><div class="memdoc">
<p>default pool cleanup </p>
</div>
</div>
<a id="gad93b2c229d154c8f6a5c9dfcd7488756"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad93b2c229d154c8f6a5c9dfcd7488756">◆ </a></span>APR_RESLIST_CLEANUP_FIRST</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define APR_RESLIST_CLEANUP_FIRST   1</td>
</tr>
</table>
</div><div class="memdoc">
<p>use pool pre cleanup </p>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga670f6719dfeffe1037e063eaab7b82ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga670f6719dfeffe1037e063eaab7b82ac">◆ </a></span>apr_reslist_t</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> <a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Opaque resource list object </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gadfbb592b31ff9215f45d3280636e41d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadfbb592b31ff9215f45d3280636e41d7">◆ </a></span>apr_reslist_acquire()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_acquire </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void ** </td>
<td class="paramname"><em>resource</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve a resource from the list, creating a new one if necessary. If we have met our maximum number of resources, we will block until one becomes available. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
<tr><td class="paramname">resource</td><td>An address where the pointer to the resource will be stored. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gac37fbbcbc8a98ba9ed017638a2c6c1b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac37fbbcbc8a98ba9ed017638a2c6c1b7">◆ </a></span>apr_reslist_acquired_count()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_uint32_t apr_reslist_acquired_count </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the number of outstanding resources. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga7e8adfc4b12ffb63c6795d8d79ee5e95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e8adfc4b12ffb63c6795d8d79ee5e95">◆ </a></span>apr_reslist_cleanup_order_set()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void apr_reslist_cleanup_order_set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_uint32_t </td>
<td class="paramname"><em>mode</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set reslist cleanup order. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
<tr><td class="paramname">mode</td><td>Cleanup order mode <pre>
APR_RESLIST_CLEANUP_DEFAULT default pool cleanup order
APR_RESLIST_CLEANUP_FIRST use pool pre cleanup
</pre> </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>If APR_RESLIST_CLEANUP_FIRST is used the destructors will be called before child pools of the pool used to create the reslist are destroyed. This allows to explicitly destroy the child pools inside reslist destructors. </dd></dl>
</div>
</div>
<a id="ga608ebcddce542603a7f1d3cf51ae8d3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga608ebcddce542603a7f1d3cf51ae8d3c">◆ </a></span>apr_reslist_create()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> ** </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>min</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>smax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>hmax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_interval_time_t </td>
<td class="paramname"><em>ttl</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_reslist_constructor </td>
<td class="paramname"><em>con</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_reslist_destructor </td>
<td class="paramname"><em>de</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>params</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_pool_t * </td>
<td class="paramname"><em>pool</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new resource list with the following parameters: </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>An address where the pointer to the new resource list will be stored. </td></tr>
<tr><td class="paramname">min</td><td>Allowed minimum number of available resources. Zero creates new resources only when needed. </td></tr>
<tr><td class="paramname">smax</td><td>Resources will be destroyed during reslist maintenance to meet this maximum restriction as they expire (reach their ttl). </td></tr>
<tr><td class="paramname">hmax</td><td>Absolute maximum limit on the number of total resources. </td></tr>
<tr><td class="paramname">ttl</td><td>If non-zero, sets the maximum amount of time in microseconds an unused resource is valid. Any resource which has exceeded this time will be destroyed, either when encountered by <a class="el" href="group___a_p_r___util___r_l.html#gadfbb592b31ff9215f45d3280636e41d7">apr_reslist_acquire()</a> or during reslist maintenance. </td></tr>
<tr><td class="paramname">con</td><td>Constructor routine that is called to create a new resource. </td></tr>
<tr><td class="paramname">de</td><td>Destructor routine that is called to destroy an expired resource. </td></tr>
<tr><td class="paramname">params</td><td>Passed to constructor and deconstructor </td></tr>
<tr><td class="paramname">pool</td><td>The pool from which to create this resource list. Also the same pool that is passed to the constructor and destructor routines. </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>If APR has been compiled without thread support, hmax will be automatically set to 1 and values of min and smax will be forced to 1 for any non-zero value. </dd></dl>
</div>
</div>
<a id="ga103e0cbac6c5da7cb93d4e52799233cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga103e0cbac6c5da7cb93d4e52799233cb">◆ </a></span>apr_reslist_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy the given resource list and all resources controlled by this list. FIXME: Should this block until all resources become available, or maybe just destroy all the free ones, or maybe destroy them even though they might be in use by something else? Currently it will abort if there are resources that haven't been released, so there is an assumption that all resources have been released to the list before calling this function. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The reslist to destroy </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga346c0604115a9659cf23ed0cc781f7a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga346c0604115a9659cf23ed0cc781f7a9">◆ </a></span>apr_reslist_invalidate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_invalidate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>resource</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Invalidate a resource in the pool - e.g. a database connection that returns a "lost connection" error and can't be restored. Use this instead of apr_reslist_release if the resource is bad. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
<tr><td class="paramname">resource</td><td>The resource to invalidate. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gaa13a7724a30b5a37ac13548bd8dc56f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa13a7724a30b5a37ac13548bd8dc56f6">◆ </a></span>apr_reslist_maintain()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_maintain </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Perform routine maintenance on the resource list. This call may instantiate new resources or expire old resources. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gaf65ca1701994a0323df639cdb4a8d8b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf65ca1701994a0323df639cdb4a8d8b2">◆ </a></span>apr_reslist_release()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_reslist_release </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>resource</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a resource back to the list of available resources. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
<tr><td class="paramname">resource</td><td>The resource to return to the list. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gafe06c964d04a568f2625fb5a9ba7bad6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe06c964d04a568f2625fb5a9ba7bad6">◆ </a></span>apr_reslist_timeout_set()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void apr_reslist_timeout_set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_l.html#ga670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> * </td>
<td class="paramname"><em>reslist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_interval_time_t </td>
<td class="paramname"><em>timeout</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the timeout the acquire will wait for a free resource when the maximum number of resources is exceeded. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reslist</td><td>The resource list. </td></tr>
<tr><td class="paramname">timeout</td><td>Timeout to wait. The zero waits forever. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
AnonSec - 2021 | Recode By D7net