D7net Mini Sh3LL v1
Current File : //usr/share/systemd/../doc/php-common/../vim/../python3-setuptools/../pci.ids/../libbsd0/../tcpdump/../libaprutil1-dev/html/apr__thread__pool_8h.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: apr_thread_pool.h File Reference</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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<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">apr_thread_pool.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>APR Thread Pool Library.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include "apu.h"</code><br />
<code>#include "apr_thread_proc.h"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for apr_thread_pool.h:</div>
<div class="dyncontent">
<div class="center"><img src="apr__thread__pool_8h__incl.png" border="0" usemap="#apr__thread__pool_8h" alt=""/></div>
<!-- MAP 0 -->
</div>
</div>
<p><a href="apr__thread__pool_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga312691aaa41f45820e13c2566a4c6780"><td class="memItemLeft" align="right" valign="top">
#define </td><td class="memItemRight" valign="bottom"><b>APR_THREAD_TASK_PRIORITY_LOWEST</b>   0</td></tr>
<tr class="separator:ga312691aaa41f45820e13c2566a4c6780"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga19879c994e9a71e9954e580a179b62c1"><td class="memItemLeft" align="right" valign="top">
#define </td><td class="memItemRight" valign="bottom"><b>APR_THREAD_TASK_PRIORITY_LOW</b>   63</td></tr>
<tr class="separator:ga19879c994e9a71e9954e580a179b62c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga84d2ac8fa8a538661715b0d2e2736cb1"><td class="memItemLeft" align="right" valign="top">
#define </td><td class="memItemRight" valign="bottom"><b>APR_THREAD_TASK_PRIORITY_NORMAL</b>   127</td></tr>
<tr class="separator:ga84d2ac8fa8a538661715b0d2e2736cb1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga289d5e1346b5807b43db9ea7d4ea5c17"><td class="memItemLeft" align="right" valign="top">
#define </td><td class="memItemRight" valign="bottom"><b>APR_THREAD_TASK_PRIORITY_HIGH</b>   191</td></tr>
<tr class="separator:ga289d5e1346b5807b43db9ea7d4ea5c17"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5fa01e4e210270d119382a80aae13d1d"><td class="memItemLeft" align="right" valign="top">
#define </td><td class="memItemRight" valign="bottom"><b>APR_THREAD_TASK_PRIORITY_HIGHEST</b>   255</td></tr>
<tr class="separator:ga5fa01e4e210270d119382a80aae13d1d"><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:gab31b68a03a0d5eec3e1879c253d3b620"><td class="memItemLeft" align="right" valign="top">typedef struct apr_thread_pool </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a></td></tr>
<tr class="separator:gab31b68a03a0d5eec3e1879c253d3b620"><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:ga9c4351f2f93d223c159c1f8e5481830e"><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___t_p.html#ga9c4351f2f93d223c159c1f8e5481830e">apr_thread_pool_create</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> **me, apr_size_t init_threads, apr_size_t max_threads, apr_pool_t *pool)</td></tr>
<tr class="separator:ga9c4351f2f93d223c159c1f8e5481830e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab06b4fdfc684c88781abf201d53a44eb"><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___t_p.html#gab06b4fdfc684c88781abf201d53a44eb">apr_thread_pool_destroy</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gab06b4fdfc684c88781abf201d53a44eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad66fb92679a8f456ff8e8ea1629eb041"><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___t_p.html#gad66fb92679a8f456ff8e8ea1629eb041">apr_thread_pool_push</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_thread_start_t func, void *param, apr_byte_t priority, void *owner)</td></tr>
<tr class="separator:gad66fb92679a8f456ff8e8ea1629eb041"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa79df50c650442b8d39e169f4e422d3b"><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___t_p.html#gaa79df50c650442b8d39e169f4e422d3b">apr_thread_pool_schedule</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_thread_start_t func, void *param, apr_interval_time_t time, void *owner)</td></tr>
<tr class="separator:gaa79df50c650442b8d39e169f4e422d3b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9acb6218820184f0617eecf56f0d3d84"><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___t_p.html#ga9acb6218820184f0617eecf56f0d3d84">apr_thread_pool_top</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_thread_start_t func, void *param, apr_byte_t priority, void *owner)</td></tr>
<tr class="separator:ga9acb6218820184f0617eecf56f0d3d84"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaee3d7332cf2591f42472e8be0bcbff87"><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___t_p.html#gaee3d7332cf2591f42472e8be0bcbff87">apr_thread_pool_tasks_cancel</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, void *owner)</td></tr>
<tr class="separator:gaee3d7332cf2591f42472e8be0bcbff87"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4f628cbec0365bb39be715a3c7ff0ec3"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga4f628cbec0365bb39be715a3c7ff0ec3">apr_thread_pool_tasks_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga4f628cbec0365bb39be715a3c7ff0ec3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac0324b95f6b61dbfb184cbe84c541b42"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gac0324b95f6b61dbfb184cbe84c541b42">apr_thread_pool_scheduled_tasks_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gac0324b95f6b61dbfb184cbe84c541b42"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9a2642a5a61df9560da438e818d5fad3"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga9a2642a5a61df9560da438e818d5fad3">apr_thread_pool_threads_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga9a2642a5a61df9560da438e818d5fad3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf839cda931928964f450e3a17d153b24"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gaf839cda931928964f450e3a17d153b24">apr_thread_pool_busy_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gaf839cda931928964f450e3a17d153b24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae6c5b87d1fee7150f74baa1008cb00c0"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gae6c5b87d1fee7150f74baa1008cb00c0">apr_thread_pool_idle_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gae6c5b87d1fee7150f74baa1008cb00c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga07c5e4dca589ff024e9adfc8f818c481"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga07c5e4dca589ff024e9adfc8f818c481">apr_thread_pool_idle_max_set</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_size_t cnt)</td></tr>
<tr class="separator:ga07c5e4dca589ff024e9adfc8f818c481"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaab5c9c8afc46793ea5c413edfc9ef46e"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gaab5c9c8afc46793ea5c413edfc9ef46e">apr_thread_pool_tasks_run_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gaab5c9c8afc46793ea5c413edfc9ef46e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5eda07fb7fac1b4c4165137f34c5c31c"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga5eda07fb7fac1b4c4165137f34c5c31c">apr_thread_pool_tasks_high_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga5eda07fb7fac1b4c4165137f34c5c31c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab6dcdaa6129caf35fa370e694a67ff08"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gab6dcdaa6129caf35fa370e694a67ff08">apr_thread_pool_threads_high_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gab6dcdaa6129caf35fa370e694a67ff08"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafcf0a761a77b2a27fc043d650606c122"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gafcf0a761a77b2a27fc043d650606c122">apr_thread_pool_threads_idle_timeout_count</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gafcf0a761a77b2a27fc043d650606c122"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6dd7fdcaac5cb2848aecd2ee1426d41e"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga6dd7fdcaac5cb2848aecd2ee1426d41e">apr_thread_pool_idle_max_get</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga6dd7fdcaac5cb2848aecd2ee1426d41e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa352b6337b31ebab796b604240a907e9"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gaa352b6337b31ebab796b604240a907e9">apr_thread_pool_thread_max_set</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_size_t cnt)</td></tr>
<tr class="separator:gaa352b6337b31ebab796b604240a907e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga382b90c482d39184b2a80157f64166ec"><td class="memItemLeft" align="right" valign="top">apr_interval_time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga382b90c482d39184b2a80157f64166ec">apr_thread_pool_idle_wait_set</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_interval_time_t timeout)</td></tr>
<tr class="separator:ga382b90c482d39184b2a80157f64166ec"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6ef255c2d556fa757e9b78c2745c9bac"><td class="memItemLeft" align="right" valign="top">apr_interval_time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga6ef255c2d556fa757e9b78c2745c9bac">apr_thread_pool_idle_wait_get</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga6ef255c2d556fa757e9b78c2745c9bac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaca755ea05976c5e1b782dcf40a1ef443"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#gaca755ea05976c5e1b782dcf40a1ef443">apr_thread_pool_thread_max_get</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:gaca755ea05976c5e1b782dcf40a1ef443"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1c35f1bd809dde4300f4a3f77026f446"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga1c35f1bd809dde4300f4a3f77026f446">apr_thread_pool_threshold_set</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me, apr_size_t val)</td></tr>
<tr class="separator:ga1c35f1bd809dde4300f4a3f77026f446"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga38f4ad8e384cde0e9d32867031c7a935"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___t_p.html#ga38f4ad8e384cde0e9d32867031c7a935">apr_thread_pool_threshold_get</a> (<a class="el" href="group___a_p_r___util___t_p.html#gab31b68a03a0d5eec3e1879c253d3b620">apr_thread_pool_t</a> *me)</td></tr>
<tr class="separator:ga38f4ad8e384cde0e9d32867031c7a935"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaefbaa0f765567e8e5a79adaaf346755f"><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___t_p.html#gaefbaa0f765567e8e5a79adaaf346755f">apr_thread_pool_task_owner_get</a> (apr_thread_t *thd, void **owner)</td></tr>
<tr class="separator:gaefbaa0f765567e8e5a79adaaf346755f"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>APR Thread Pool Library. </p>
<dl class="section remark"><dt>Remarks</dt><dd>This library implements a thread pool using apr_thread_t. A thread pool is a set of threads that can be created in advance or on demand until a maximum number. When a task is scheduled, the thread pool will find an idle thread to handle the task. In case all existing threads are busy and the number of tasks in the queue is higher than the adjustable threshold, the pool will try to create a new thread to serve the task if the maximum number has not been reached. Otherwise, the task will be put into a queue based on priority, which can be valued from 0 to 255, with higher values being served first. If there are tasks with the same priority, the new task might be put at the top or at the bottom - it depends on which function is used to put the task.</dd>
<dd>
There may be the case where the thread pool can use up to the maximum number of threads at peak load, but having those threads idle afterwards. A maximum number of idle threads can be set so that the extra idling threads will be terminated to save system resources. </dd></dl>
</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