apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r598101 [29/31] - in /apr/site/trunk/docs/docs: apr-util/0.9/ apr-util/1.2/ apr-util/trunk/ apr/0.9/ apr/1.2/ apr/trunk/
Date Mon, 26 Nov 2007 01:06:54 GMT
Modified: apr/site/trunk/docs/docs/apr/trunk/apr__thread__proc_8h-source.html
URL: http://svn.apache.org/viewvc/apr/site/trunk/docs/docs/apr/trunk/apr__thread__proc_8h-source.html?rev=598101&r1=598100&r2=598101&view=diff
==============================================================================
--- apr/site/trunk/docs/docs/apr/trunk/apr__thread__proc_8h-source.html (original)
+++ apr/site/trunk/docs/docs/apr/trunk/apr__thread__proc_8h-source.html Sun Nov 25 17:05:47 2007
@@ -100,726 +100,752 @@
 <a name="l00077"></a>00077 <span class="preprocessor"></span><span class="comment"></span>
 <a name="l00078"></a>00078 <span class="comment">/** @see apr_procattr_io_set */</span>
 <a name="l00079"></a><a class="code" href="group__apr__thread__proc.html#gb7cfcb8ed24e6c0a76cd41b5b113ae95">00079</a> <span class="preprocessor">#define APR_NO_PIPE          0</span>
-<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="comment"></span>
-<a name="l00081"></a>00081 <span class="comment">/** @see apr_procattr_io_set */</span>
-<a name="l00082"></a><a class="code" href="group__apr__thread__proc.html#g646af57314e71f4647243f36dd03e5ea">00082</a> <span class="preprocessor">#define APR_FULL_BLOCK       1</span>
-<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
-<a name="l00084"></a><a class="code" href="group__apr__thread__proc.html#ge0707f76da785490830fc3491093767c">00084</a> <span class="preprocessor">#define APR_FULL_NONBLOCK    2</span>
-<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
-<a name="l00086"></a><a class="code" href="group__apr__thread__proc.html#g8653bab028b1c2b98754babc2547f988">00086</a> <span class="preprocessor">#define APR_PARENT_BLOCK     3</span>
-<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
-<a name="l00088"></a><a class="code" href="group__apr__thread__proc.html#gcad9da4db7a22f46715e50fb8ec1c939">00088</a> <span class="preprocessor">#define APR_CHILD_BLOCK      4</span>
-<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="comment"></span>
-<a name="l00090"></a>00090 <span class="comment">/** @see apr_procattr_limit_set */</span>
-<a name="l00091"></a><a class="code" href="group__apr__thread__proc.html#gad8a94c7ac2be58fe035b2fd6efec84f">00091</a> <span class="preprocessor">#define APR_LIMIT_CPU        0</span>
-<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
-<a name="l00093"></a><a class="code" href="group__apr__thread__proc.html#g6dbb01bb357b078acff8fd87e9c494e8">00093</a> <span class="preprocessor">#define APR_LIMIT_MEM        1</span>
-<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
-<a name="l00095"></a><a class="code" href="group__apr__thread__proc.html#g72e9be453a20f4e78bc6d7bd95d7c333">00095</a> <span class="preprocessor">#define APR_LIMIT_NPROC      2</span>
-<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
-<a name="l00097"></a><a class="code" href="group__apr__thread__proc.html#g18d73099d66988698a9ad2aebdce2c9f">00097</a> <span class="preprocessor">#define APR_LIMIT_NOFILE     3</span>
-<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="comment"></span>
-<a name="l00099"></a>00099 <span class="comment">/**</span>
-<a name="l00100"></a>00100 <span class="comment"> * @defgroup APR_OC Other Child Flags</span>
-<a name="l00101"></a>00101 <span class="comment"> * @{</span>
-<a name="l00102"></a>00102 <span class="comment"> */</span>
-<a name="l00103"></a><a class="code" href="group___a_p_r___o_c.html#g93a18b17cfedca0c7c99c696508c935b">00103</a> <span class="preprocessor">#define APR_OC_REASON_DEATH         0     </span><span class="comment">/**&lt; child has died, caller must call</span>
-<a name="l00104"></a>00104 <span class="comment">                                           * unregister still */</span>
-<a name="l00105"></a><a class="code" href="group___a_p_r___o_c.html#ge4cb4983512df7df00c9c0401efba9c9">00105</a> <span class="preprocessor">#define APR_OC_REASON_UNWRITABLE    1     </span><span class="comment">/**&lt; write_fd is unwritable */</span>
-<a name="l00106"></a><a class="code" href="group___a_p_r___o_c.html#g5ae054b0b4c7c8eea911c146ae9ccdce">00106</a> <span class="preprocessor">#define APR_OC_REASON_RESTART       2     </span><span class="comment">/**&lt; a restart is occuring, perform</span>
-<a name="l00107"></a>00107 <span class="comment">                                           * any necessary cleanup (including</span>
-<a name="l00108"></a>00108 <span class="comment">                                           * sending a special signal to child)</span>
-<a name="l00109"></a>00109 <span class="comment">                                           */</span>
-<a name="l00110"></a><a class="code" href="group___a_p_r___o_c.html#g7fe88662b788e07800290f68575b2f4b">00110</a> <span class="preprocessor">#define APR_OC_REASON_UNREGISTER    3     </span><span class="comment">/**&lt; unregister has been called, do</span>
-<a name="l00111"></a>00111 <span class="comment">                                           * whatever is necessary (including</span>
-<a name="l00112"></a>00112 <span class="comment">                                           * kill the child) */</span>
-<a name="l00113"></a><a class="code" href="group___a_p_r___o_c.html#g5d441798b20b93bd1f609264d03690fb">00113</a> <span class="preprocessor">#define APR_OC_REASON_LOST          4     </span><span class="comment">/**&lt; somehow the child exited without</span>
-<a name="l00114"></a>00114 <span class="comment">                                           * us knowing ... buggy os? */</span>
-<a name="l00115"></a><a class="code" href="group___a_p_r___o_c.html#ga4a7ca44f23d67e7e19fd59bf41abd6a">00115</a> <span class="preprocessor">#define APR_OC_REASON_RUNNING       5     </span><span class="comment">/**&lt; a health check is occuring, </span>
-<a name="l00116"></a>00116 <span class="comment">                                           * for most maintainence functions</span>
-<a name="l00117"></a>00117 <span class="comment">                                           * this is a no-op.</span>
-<a name="l00118"></a>00118 <span class="comment">                                           */</span>
-<a name="l00119"></a>00119 <span class="comment">/** @} */</span>
-<a name="l00120"></a>00120 <span class="comment"></span>
-<a name="l00121"></a>00121 <span class="comment">/** The APR process type */</span>
-<a name="l00122"></a><a class="code" href="structapr__proc__t.html">00122</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__proc__t.html">apr_proc_t</a> {<span class="comment"></span>
-<a name="l00123"></a>00123 <span class="comment">    /** The process ID */</span>
-<a name="l00124"></a><a class="code" href="structapr__proc__t.html#8a8ee4b234156485a72497023e7482e5">00124</a>     pid_t <a class="code" href="structapr__proc__t.html#8a8ee4b234156485a72497023e7482e5">pid</a>;<span class="comment"></span>
-<a name="l00125"></a>00125 <span class="comment">    /** Parent's side of pipe to child's stdin */</span>
-<a name="l00126"></a><a class="code" href="structapr__proc__t.html#914bda8939f9d17c9e2f238683fb994b">00126</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#914bda8939f9d17c9e2f238683fb994b">in</a>;<span class="comment"></span>
-<a name="l00127"></a>00127 <span class="comment">    /** Parent's side of pipe to child's stdout */</span>
-<a name="l00128"></a><a class="code" href="structapr__proc__t.html#cb7d7c5226217946d761f0e90ff70d24">00128</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#cb7d7c5226217946d761f0e90ff70d24">out</a>;<span class="comment"></span>
-<a name="l00129"></a>00129 <span class="comment">    /** Parent's side of pipe to child's stdouterr */</span>
-<a name="l00130"></a><a class="code" href="structapr__proc__t.html#d087f812b5c69ce937db4cf6e8cd5a0b">00130</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#d087f812b5c69ce937db4cf6e8cd5a0b">err</a>;
-<a name="l00131"></a>00131 <span class="preprocessor">#if APR_HAS_PROC_INVOKED || defined(DOXYGEN)</span>
-<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="comment">    /** Diagnositics/debugging string of the command invoked for </span>
-<a name="l00133"></a>00133 <span class="comment">     *  this process [only present if APR_HAS_PROC_INVOKED is true]</span>
-<a name="l00134"></a>00134 <span class="comment">     * @remark Only enabled on Win32 by default.</span>
-<a name="l00135"></a>00135 <span class="comment">     * @bug This should either always or never be present in release</span>
-<a name="l00136"></a>00136 <span class="comment">     * builds - since it breaks binary compatibility.  We may enable</span>
-<a name="l00137"></a>00137 <span class="comment">     * it always in APR 1.0 yet leave it undefined in most cases.</span>
-<a name="l00138"></a>00138 <span class="comment">     */</span>
-<a name="l00139"></a><a class="code" href="structapr__proc__t.html#72ed1c58c3f08ffa7202fa80e870cd54">00139</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__proc__t.html#72ed1c58c3f08ffa7202fa80e870cd54">invoked</a>;
-<a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
-<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#if defined(WIN32) || defined(DOXYGEN)</span>
-<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="comment">    /** (Win32 only) Creator's handle granting access to the process</span>
-<a name="l00143"></a>00143 <span class="comment">     * @remark This handle is closed and reset to NULL in every case</span>
-<a name="l00144"></a>00144 <span class="comment">     * corresponding to a waitpid() on Unix which returns the exit status.</span>
-<a name="l00145"></a>00145 <span class="comment">     * Therefore Win32 correspond's to Unix's zombie reaping characteristics</span>
-<a name="l00146"></a>00146 <span class="comment">     * and avoids potential handle leaks.</span>
-<a name="l00147"></a>00147 <span class="comment">     */</span>
-<a name="l00148"></a><a class="code" href="structapr__proc__t.html#a1f17cce2b442d92893b9c63053b6771">00148</a>     HANDLE <a class="code" href="structapr__proc__t.html#a1f17cce2b442d92893b9c63053b6771">hproc</a>;
-<a name="l00149"></a>00149 <span class="preprocessor">#endif</span>
-<a name="l00150"></a>00150 <span class="preprocessor"></span>} <a class="code" href="structapr__proc__t.html">apr_proc_t</a>;
-<a name="l00151"></a>00151 <span class="comment"></span>
-<a name="l00152"></a>00152 <span class="comment">/**</span>
-<a name="l00153"></a>00153 <span class="comment"> * The prototype for APR child errfn functions.  (See the description</span>
-<a name="l00154"></a>00154 <span class="comment"> * of apr_procattr_child_errfn_set() for more information.)</span>
-<a name="l00155"></a>00155 <span class="comment"> * It is passed the following parameters:</span>
-<a name="l00156"></a>00156 <span class="comment"> * @param pool Pool associated with the apr_proc_t.  If your child</span>
-<a name="l00157"></a>00157 <span class="comment"> *             error function needs user data, associate it with this</span>
-<a name="l00158"></a>00158 <span class="comment"> *             pool.</span>
-<a name="l00159"></a>00159 <span class="comment"> * @param err APR error code describing the error</span>
-<a name="l00160"></a>00160 <span class="comment"> * @param description Text description of type of processing which failed</span>
-<a name="l00161"></a>00161 <span class="comment"> */</span>
-<a name="l00162"></a><a class="code" href="group__apr__thread__proc.html#g8f8642f468f05b0ac2b1426b723af100">00162</a> <span class="keyword">typedef</span> void (<a class="code" href="group__apr__thread__proc.html#g8f8642f468f05b0ac2b1426b723af100">apr_child_errfn_t</a>)(<a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *proc, <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> err,
-<a name="l00163"></a>00163                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *description);
-<a name="l00164"></a>00164 <span class="comment"></span>
-<a name="l00165"></a>00165 <span class="comment">/** Opaque Thread structure. */</span>
-<a name="l00166"></a><a class="code" href="group__apr__thread__proc.html#g646c71351e723d84f8cc8c8d1d5937be">00166</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g646c71351e723d84f8cc8c8d1d5937be">apr_thread_t</a>           apr_thread_t;
-<a name="l00167"></a>00167 <span class="comment"></span>
-<a name="l00168"></a>00168 <span class="comment">/** Opaque Thread attributes structure. */</span>
-<a name="l00169"></a><a class="code" href="group__apr__thread__proc.html#g35de571e9944871c10b38d8feef885ac">00169</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g35de571e9944871c10b38d8feef885ac">apr_threadattr_t</a>       apr_threadattr_t;
-<a name="l00170"></a>00170 <span class="comment"></span>
-<a name="l00171"></a>00171 <span class="comment">/** Opaque Process attributes structure. */</span>
-<a name="l00172"></a><a class="code" href="group__apr__thread__proc.html#g0d83919a6a0dd609598a864917f8b339">00172</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g0d83919a6a0dd609598a864917f8b339">apr_procattr_t</a>         apr_procattr_t;
-<a name="l00173"></a>00173 <span class="comment"></span>
-<a name="l00174"></a>00174 <span class="comment">/** Opaque control variable for one-time atomic variables.  */</span>
-<a name="l00175"></a><a class="code" href="group__apr__thread__proc.html#g91841bcf20d0579e8e6acc6d3c220ac1">00175</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g91841bcf20d0579e8e6acc6d3c220ac1">apr_thread_once_t</a>      apr_thread_once_t;
-<a name="l00176"></a>00176 <span class="comment"></span>
-<a name="l00177"></a>00177 <span class="comment">/** Opaque thread private address space. */</span>
-<a name="l00178"></a><a class="code" href="group__apr__thread__proc.html#g337c9c1bd2d47740022071a5c41f2edb">00178</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g337c9c1bd2d47740022071a5c41f2edb">apr_threadkey_t</a>        apr_threadkey_t;
-<a name="l00179"></a>00179 <span class="comment"></span>
-<a name="l00180"></a>00180 <span class="comment">/** Opaque record of child process. */</span>
-<a name="l00181"></a><a class="code" href="group__apr__thread__proc.html#gfc52ee8b19a7b222278d31ebb3f11a71">00181</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#gfc52ee8b19a7b222278d31ebb3f11a71">apr_other_child_rec_t</a>  apr_other_child_rec_t;
-<a name="l00182"></a>00182 <span class="comment"></span>
-<a name="l00183"></a>00183 <span class="comment">/**</span>
-<a name="l00184"></a>00184 <span class="comment"> * The prototype for any APR thread worker functions.</span>
-<a name="l00185"></a>00185 <span class="comment"> */</span>
-<a name="l00186"></a><a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">00186</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *(<a class="code" href="group__apr__platform.html#gde8f829f9bd98fd4386894acf72edd7c">APR_THREAD_FUNC</a> *<a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">apr_thread_start_t</a>)(apr_thread_t*, <span class="keywordtype">void</span>*);
-<a name="l00187"></a>00187 
-<a name="l00188"></a><a class="code" href="group__apr__thread__proc.html#g3eaec78633742e7e0cb9480a21477aff">00188</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
-<a name="l00189"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff33580ab0809e9498855fbdde8a1714ef">00189</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff33580ab0809e9498855fbdde8a1714ef">APR_KILL_NEVER</a>,             <span class="comment">/**&lt; process is never sent any signals */</span>
-<a name="l00190"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477afff45d0f72811399b394d1311384e2dfe4">00190</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477afff45d0f72811399b394d1311384e2dfe4">APR_KILL_ALWAYS</a>,            <span class="comment">/**&lt; process is sent SIGKILL on apr_pool_t cleanup */</span>
-<a name="l00191"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff16a47aa786b1c1f31ef02353bcae9a1a">00191</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff16a47aa786b1c1f31ef02353bcae9a1a">APR_KILL_AFTER_TIMEOUT</a>,     <span class="comment">/**&lt; SIGTERM, wait 3 seconds, SIGKILL */</span>
-<a name="l00192"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff6ada2605856ac94826edbe824e64e503">00192</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff6ada2605856ac94826edbe824e64e503">APR_JUST_WAIT</a>,              <span class="comment">/**&lt; wait forever for the process to complete */</span>
-<a name="l00193"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff24d6f47785093be4cea2a922eeaed098">00193</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff24d6f47785093be4cea2a922eeaed098">APR_KILL_ONLY_ONCE</a>          <span class="comment">/**&lt; send SIGTERM and then wait */</span>
-<a name="l00194"></a>00194 } <a class="code" href="group__apr__thread__proc.html#g3eaec78633742e7e0cb9480a21477aff">apr_kill_conditions_e</a>;
-<a name="l00195"></a>00195 
-<a name="l00196"></a>00196 <span class="comment">/* Thread Function definitions */</span>
-<a name="l00197"></a>00197 
-<a name="l00198"></a>00198 <span class="preprocessor">#if APR_HAS_THREADS</span>
-<a name="l00199"></a>00199 <span class="preprocessor"></span><span class="comment"></span>
-<a name="l00200"></a>00200 <span class="comment">/**</span>
-<a name="l00201"></a>00201 <span class="comment"> * Create and initialize a new threadattr variable</span>
-<a name="l00202"></a>00202 <span class="comment"> * @param new_attr The newly created threadattr.</span>
-<a name="l00203"></a>00203 <span class="comment"> * @param cont The pool to use</span>
-<a name="l00204"></a>00204 <span class="comment"> */</span>
-<a name="l00205"></a>00205 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g66c2f55e5dff9ac37bd32e9febd38da5">apr_threadattr_create</a>(apr_threadattr_t **new_attr, 
-<a name="l00206"></a>00206                                                 <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
-<a name="l00207"></a>00207 <span class="comment"></span>
-<a name="l00208"></a>00208 <span class="comment">/**</span>
-<a name="l00209"></a>00209 <span class="comment"> * Set if newly created threads should be created in detached state.</span>
-<a name="l00210"></a>00210 <span class="comment"> * @param attr The threadattr to affect </span>
-<a name="l00211"></a>00211 <span class="comment"> * @param on Non-zero if detached threads should be created.</span>
-<a name="l00212"></a>00212 <span class="comment"> */</span>
-<a name="l00213"></a>00213 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g85d44b3b021f28116122d5e40e024648">apr_threadattr_detach_set</a>(apr_threadattr_t *attr, 
-<a name="l00214"></a>00214                                                     apr_int32_t on);
-<a name="l00215"></a>00215 <span class="comment"></span>
-<a name="l00216"></a>00216 <span class="comment">/**</span>
-<a name="l00217"></a>00217 <span class="comment"> * Get the detach state for this threadattr.</span>
-<a name="l00218"></a>00218 <span class="comment"> * @param attr The threadattr to reference</span>
-<a name="l00219"></a>00219 <span class="comment"> * @return APR_DETACH if threads are to be detached, or APR_NOTDETACH</span>
-<a name="l00220"></a>00220 <span class="comment"> * if threads are to be joinable. </span>
-<a name="l00221"></a>00221 <span class="comment"> */</span>
-<a name="l00222"></a>00222 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ge5b7cdb3de542d1b7b52fe5d9d8cb00b">apr_threadattr_detach_get</a>(apr_threadattr_t *attr);
-<a name="l00223"></a>00223 <span class="comment"></span>
-<a name="l00224"></a>00224 <span class="comment">/**</span>
-<a name="l00225"></a>00225 <span class="comment"> * Set the stack size of newly created threads.</span>
-<a name="l00226"></a>00226 <span class="comment"> * @param attr The threadattr to affect </span>
-<a name="l00227"></a>00227 <span class="comment"> * @param stacksize The stack size in bytes</span>
-<a name="l00228"></a>00228 <span class="comment"> */</span>
-<a name="l00229"></a>00229 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g7849e0d637338a18cb44f66f11f28ed1">apr_threadattr_stacksize_set</a>(apr_threadattr_t *attr,
-<a name="l00230"></a>00230                                                        apr_size_t stacksize);
-<a name="l00231"></a>00231 <span class="comment"></span>
-<a name="l00232"></a>00232 <span class="comment">/**</span>
-<a name="l00233"></a>00233 <span class="comment"> * Set the stack guard area size of newly created threads.</span>
-<a name="l00234"></a>00234 <span class="comment"> * @param attr The threadattr to affect </span>
-<a name="l00235"></a>00235 <span class="comment"> * @param guardsize The stack guard area size in bytes</span>
-<a name="l00236"></a>00236 <span class="comment"> * @note Thread library implementations commonly use a "guard area"</span>
-<a name="l00237"></a>00237 <span class="comment"> * after each thread's stack which is not readable or writable such that</span>
-<a name="l00238"></a>00238 <span class="comment"> * stack overflows cause a segfault; this consumes e.g. 4K of memory</span>
-<a name="l00239"></a>00239 <span class="comment"> * and increases memory management overhead.  Setting the guard area</span>
-<a name="l00240"></a>00240 <span class="comment"> * size to zero hence trades off reliable behaviour on stack overflow</span>
-<a name="l00241"></a>00241 <span class="comment"> * for performance. */</span>
-<a name="l00242"></a>00242 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g2e732f2913291180c0c484f57d727140">apr_threadattr_guardsize_set</a>(apr_threadattr_t *attr,
-<a name="l00243"></a>00243                                                        apr_size_t guardsize);
-<a name="l00244"></a>00244 <span class="comment"></span>
-<a name="l00245"></a>00245 <span class="comment">/**</span>
-<a name="l00246"></a>00246 <span class="comment"> * Create a new thread of execution</span>
-<a name="l00247"></a>00247 <span class="comment"> * @param new_thread The newly created thread handle.</span>
-<a name="l00248"></a>00248 <span class="comment"> * @param attr The threadattr to use to determine how to create the thread</span>
-<a name="l00249"></a>00249 <span class="comment"> * @param func The function to start the new thread in</span>
-<a name="l00250"></a>00250 <span class="comment"> * @param data Any data to be passed to the starting function</span>
-<a name="l00251"></a>00251 <span class="comment"> * @param cont The pool to use</span>
-<a name="l00252"></a>00252 <span class="comment"> */</span>
-<a name="l00253"></a>00253 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#geba6593f43f1de94c2b4495dd72b0e9f">apr_thread_create</a>(apr_thread_t **new_thread, 
-<a name="l00254"></a>00254                                             apr_threadattr_t *attr, 
-<a name="l00255"></a>00255                                             <a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">apr_thread_start_t</a> func, 
-<a name="l00256"></a>00256                                             <span class="keywordtype">void</span> *data, <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
-<a name="l00257"></a>00257 <span class="comment"></span>
-<a name="l00258"></a>00258 <span class="comment">/**</span>
-<a name="l00259"></a>00259 <span class="comment"> * stop the current thread</span>
-<a name="l00260"></a>00260 <span class="comment"> * @param thd The thread to stop</span>
-<a name="l00261"></a>00261 <span class="comment"> * @param retval The return value to pass back to any thread that cares</span>
-<a name="l00262"></a>00262 <span class="comment"> */</span>
-<a name="l00263"></a>00263 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g0e35365e530578bca1b4bea522ac8c85">apr_thread_exit</a>(apr_thread_t *thd, 
-<a name="l00264"></a>00264                                           <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> retval);
-<a name="l00265"></a>00265 <span class="comment"></span>
-<a name="l00266"></a>00266 <span class="comment">/**</span>
-<a name="l00267"></a>00267 <span class="comment"> * block until the desired thread stops executing.</span>
-<a name="l00268"></a>00268 <span class="comment"> * @param retval The return value from the dead thread.</span>
-<a name="l00269"></a>00269 <span class="comment"> * @param thd The thread to join</span>
-<a name="l00270"></a>00270 <span class="comment"> */</span>
-<a name="l00271"></a>00271 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g1b950f36fa5bcd5a64887073f46f6d13">apr_thread_join</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> *retval, 
-<a name="l00272"></a>00272                                           apr_thread_t *thd); 
-<a name="l00273"></a>00273 <span class="comment"></span>
-<a name="l00274"></a>00274 <span class="comment">/**</span>
-<a name="l00275"></a>00275 <span class="comment"> * force the current thread to yield the processor</span>
-<a name="l00276"></a>00276 <span class="comment"> */</span>
-<a name="l00277"></a>00277 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group__apr__thread__proc.html#gcd69fb862c069cb6f297f65d64b5c102">apr_thread_yield</a>(<span class="keywordtype">void</span>);
-<a name="l00278"></a>00278 <span class="comment"></span>
-<a name="l00279"></a>00279 <span class="comment">/**</span>
-<a name="l00280"></a>00280 <span class="comment"> * Initialize the control variable for apr_thread_once.  If this isn't</span>
-<a name="l00281"></a>00281 <span class="comment"> * called, apr_initialize won't work.</span>
-<a name="l00282"></a>00282 <span class="comment"> * @param control The control variable to initialize</span>
-<a name="l00283"></a>00283 <span class="comment"> * @param p The pool to allocate data from.</span>
-<a name="l00284"></a>00284 <span class="comment"> */</span>
-<a name="l00285"></a>00285 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g63f3bf667151053e45d5a2029daeda0d">apr_thread_once_init</a>(apr_thread_once_t **control,
-<a name="l00286"></a>00286                                                <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);
-<a name="l00287"></a>00287 <span class="comment"></span>
-<a name="l00288"></a>00288 <span class="comment">/**</span>
-<a name="l00289"></a>00289 <span class="comment"> * Run the specified function one time, regardless of how many threads</span>
-<a name="l00290"></a>00290 <span class="comment"> * call it.</span>
-<a name="l00291"></a>00291 <span class="comment"> * @param control The control variable.  The same variable should</span>
-<a name="l00292"></a>00292 <span class="comment"> *                be passed in each time the function is tried to be</span>
-<a name="l00293"></a>00293 <span class="comment"> *                called.  This is how the underlying functions determine</span>
-<a name="l00294"></a>00294 <span class="comment"> *                if the function has ever been called before.</span>
-<a name="l00295"></a>00295 <span class="comment"> * @param func The function to call.</span>
-<a name="l00296"></a>00296 <span class="comment"> */</span>
-<a name="l00297"></a>00297 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g8f3645ee52ff07566c92181b4ce732d8">apr_thread_once</a>(apr_thread_once_t *control,
-<a name="l00298"></a>00298                                           <span class="keywordtype">void</span> (*func)(<span class="keywordtype">void</span>));
-<a name="l00299"></a>00299 <span class="comment"></span>
-<a name="l00300"></a>00300 <span class="comment">/**</span>
-<a name="l00301"></a>00301 <span class="comment"> * detach a thread</span>
-<a name="l00302"></a>00302 <span class="comment"> * @param thd The thread to detach </span>
-<a name="l00303"></a>00303 <span class="comment"> */</span>
-<a name="l00304"></a>00304 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gdbd186912d5f6f2a19a175e1e02ba10e">apr_thread_detach</a>(apr_thread_t *thd);
-<a name="l00305"></a>00305 <span class="comment"></span>
-<a name="l00306"></a>00306 <span class="comment">/**</span>
-<a name="l00307"></a>00307 <span class="comment"> * Return the pool associated with the current thread.</span>
-<a name="l00308"></a>00308 <span class="comment"> * @param data The user data associated with the thread.</span>
-<a name="l00309"></a>00309 <span class="comment"> * @param key The key to associate with the data</span>
-<a name="l00310"></a>00310 <span class="comment"> * @param thread The currently open thread.</span>
-<a name="l00311"></a>00311 <span class="comment"> */</span>
-<a name="l00312"></a>00312 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gd799c8140ed068a12f1dbe134423eae7">apr_thread_data_get</a>(<span class="keywordtype">void</span> **data, const <span class="keywordtype">char</span> *key,
-<a name="l00313"></a>00313                                              apr_thread_t *thread);
-<a name="l00314"></a>00314 <span class="comment"></span>
-<a name="l00315"></a>00315 <span class="comment">/**</span>
-<a name="l00316"></a>00316 <span class="comment"> * Return the pool associated with the current thread.</span>
-<a name="l00317"></a>00317 <span class="comment"> * @param data The user data to associate with the thread.</span>
-<a name="l00318"></a>00318 <span class="comment"> * @param key The key to use for associating the data with the thread</span>
-<a name="l00319"></a>00319 <span class="comment"> * @param cleanup The cleanup routine to use when the thread is destroyed.</span>
-<a name="l00320"></a>00320 <span class="comment"> * @param thread The currently open thread.</span>
-<a name="l00321"></a>00321 <span class="comment"> */</span>
-<a name="l00322"></a>00322 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ga90d79c9935692db4f27a6573f437221">apr_thread_data_set</a>(<span class="keywordtype">void</span> *data, const <span class="keywordtype">char</span> *key,
-<a name="l00323"></a>00323                                              <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> (*cleanup) (<span class="keywordtype">void</span> *),
+<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set and apr_file_pipe_create_ex */</span>
+<a name="l00081"></a><a class="code" href="group__apr__thread__proc.html#g646af57314e71f4647243f36dd03e5ea">00081</a> <span class="preprocessor">#define APR_FULL_BLOCK       1</span>
+<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set and apr_file_pipe_create_ex */</span>
+<a name="l00083"></a><a class="code" href="group__apr__thread__proc.html#ge0707f76da785490830fc3491093767c">00083</a> <span class="preprocessor">#define APR_FULL_NONBLOCK    2</span>
+<a name="l00084"></a>00084 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
+<a name="l00085"></a><a class="code" href="group__apr__thread__proc.html#g8653bab028b1c2b98754babc2547f988">00085</a> <span class="preprocessor">#define APR_PARENT_BLOCK     3</span>
+<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
+<a name="l00087"></a><a class="code" href="group__apr__thread__proc.html#gcad9da4db7a22f46715e50fb8ec1c939">00087</a> <span class="preprocessor">#define APR_CHILD_BLOCK      4</span>
+<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_io_set */</span>
+<a name="l00089"></a>00089 <span class="preprocessor">#define APR_NO_FILE          8</span>
+<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00091"></a>00091 <span class="comment">/** @see apr_file_pipe_create_ex */</span>
+<a name="l00092"></a><a class="code" href="group__apr__thread__proc.html#gf8295548cb0821ee02249d6de8336bcb">00092</a> <span class="preprocessor">#define APR_READ_BLOCK       3</span>
+<a name="l00093"></a>00093 <span class="preprocessor"></span><span class="comment">/** @see apr_file_pipe_create_ex */</span>
+<a name="l00094"></a><a class="code" href="group__apr__thread__proc.html#g36ff2de9664ad6995bd488b4ac715c9c">00094</a> <span class="preprocessor">#define APR_WRITE_BLOCK      4</span>
+<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00096"></a>00096 <span class="comment">/** @see apr_procattr_io_set </span>
+<a name="l00097"></a>00097 <span class="comment"> * @note Win32 only effective with version 1.2.12, portably introduced in 1.3.0</span>
+<a name="l00098"></a>00098 <span class="comment"> */</span>
+<a name="l00099"></a><a class="code" href="group__apr__thread__proc.html#g597fb6a501c20cc3a597fe6c613f4310">00099</a> <span class="preprocessor">#define APR_NO_FILE          8</span>
+<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00101"></a>00101 <span class="comment">/** @see apr_procattr_limit_set */</span>
+<a name="l00102"></a><a class="code" href="group__apr__thread__proc.html#gad8a94c7ac2be58fe035b2fd6efec84f">00102</a> <span class="preprocessor">#define APR_LIMIT_CPU        0</span>
+<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
+<a name="l00104"></a><a class="code" href="group__apr__thread__proc.html#g6dbb01bb357b078acff8fd87e9c494e8">00104</a> <span class="preprocessor">#define APR_LIMIT_MEM        1</span>
+<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
+<a name="l00106"></a><a class="code" href="group__apr__thread__proc.html#g72e9be453a20f4e78bc6d7bd95d7c333">00106</a> <span class="preprocessor">#define APR_LIMIT_NPROC      2</span>
+<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="comment">/** @see apr_procattr_limit_set */</span>
+<a name="l00108"></a><a class="code" href="group__apr__thread__proc.html#g18d73099d66988698a9ad2aebdce2c9f">00108</a> <span class="preprocessor">#define APR_LIMIT_NOFILE     3</span>
+<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00110"></a>00110 <span class="comment">/**</span>
+<a name="l00111"></a>00111 <span class="comment"> * @defgroup APR_OC Other Child Flags</span>
+<a name="l00112"></a>00112 <span class="comment"> * @{</span>
+<a name="l00113"></a>00113 <span class="comment"> */</span>
+<a name="l00114"></a><a class="code" href="group___a_p_r___o_c.html#g93a18b17cfedca0c7c99c696508c935b">00114</a> <span class="preprocessor">#define APR_OC_REASON_DEATH         0     </span><span class="comment">/**&lt; child has died, caller must call</span>
+<a name="l00115"></a>00115 <span class="comment">                                           * unregister still */</span>
+<a name="l00116"></a><a class="code" href="group___a_p_r___o_c.html#ge4cb4983512df7df00c9c0401efba9c9">00116</a> <span class="preprocessor">#define APR_OC_REASON_UNWRITABLE    1     </span><span class="comment">/**&lt; write_fd is unwritable */</span>
+<a name="l00117"></a><a class="code" href="group___a_p_r___o_c.html#g5ae054b0b4c7c8eea911c146ae9ccdce">00117</a> <span class="preprocessor">#define APR_OC_REASON_RESTART       2     </span><span class="comment">/**&lt; a restart is occuring, perform</span>
+<a name="l00118"></a>00118 <span class="comment">                                           * any necessary cleanup (including</span>
+<a name="l00119"></a>00119 <span class="comment">                                           * sending a special signal to child)</span>
+<a name="l00120"></a>00120 <span class="comment">                                           */</span>
+<a name="l00121"></a><a class="code" href="group___a_p_r___o_c.html#g7fe88662b788e07800290f68575b2f4b">00121</a> <span class="preprocessor">#define APR_OC_REASON_UNREGISTER    3     </span><span class="comment">/**&lt; unregister has been called, do</span>
+<a name="l00122"></a>00122 <span class="comment">                                           * whatever is necessary (including</span>
+<a name="l00123"></a>00123 <span class="comment">                                           * kill the child) */</span>
+<a name="l00124"></a><a class="code" href="group___a_p_r___o_c.html#g5d441798b20b93bd1f609264d03690fb">00124</a> <span class="preprocessor">#define APR_OC_REASON_LOST          4     </span><span class="comment">/**&lt; somehow the child exited without</span>
+<a name="l00125"></a>00125 <span class="comment">                                           * us knowing ... buggy os? */</span>
+<a name="l00126"></a><a class="code" href="group___a_p_r___o_c.html#ga4a7ca44f23d67e7e19fd59bf41abd6a">00126</a> <span class="preprocessor">#define APR_OC_REASON_RUNNING       5     </span><span class="comment">/**&lt; a health check is occuring, </span>
+<a name="l00127"></a>00127 <span class="comment">                                           * for most maintainence functions</span>
+<a name="l00128"></a>00128 <span class="comment">                                           * this is a no-op.</span>
+<a name="l00129"></a>00129 <span class="comment">                                           */</span>
+<a name="l00130"></a>00130 <span class="comment">/** @} */</span>
+<a name="l00131"></a>00131 <span class="comment"></span>
+<a name="l00132"></a>00132 <span class="comment">/** The APR process type */</span>
+<a name="l00133"></a><a class="code" href="structapr__proc__t.html">00133</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__proc__t.html">apr_proc_t</a> {<span class="comment"></span>
+<a name="l00134"></a>00134 <span class="comment">    /** The process ID */</span>
+<a name="l00135"></a><a class="code" href="structapr__proc__t.html#8a8ee4b234156485a72497023e7482e5">00135</a>     pid_t <a class="code" href="structapr__proc__t.html#8a8ee4b234156485a72497023e7482e5">pid</a>;<span class="comment"></span>
+<a name="l00136"></a>00136 <span class="comment">    /** Parent's side of pipe to child's stdin */</span>
+<a name="l00137"></a><a class="code" href="structapr__proc__t.html#914bda8939f9d17c9e2f238683fb994b">00137</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#914bda8939f9d17c9e2f238683fb994b">in</a>;<span class="comment"></span>
+<a name="l00138"></a>00138 <span class="comment">    /** Parent's side of pipe to child's stdout */</span>
+<a name="l00139"></a><a class="code" href="structapr__proc__t.html#cb7d7c5226217946d761f0e90ff70d24">00139</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#cb7d7c5226217946d761f0e90ff70d24">out</a>;<span class="comment"></span>
+<a name="l00140"></a>00140 <span class="comment">    /** Parent's side of pipe to child's stdouterr */</span>
+<a name="l00141"></a><a class="code" href="structapr__proc__t.html#d087f812b5c69ce937db4cf6e8cd5a0b">00141</a>     <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *<a class="code" href="structapr__proc__t.html#d087f812b5c69ce937db4cf6e8cd5a0b">err</a>;
+<a name="l00142"></a>00142 <span class="preprocessor">#if APR_HAS_PROC_INVOKED || defined(DOXYGEN)</span>
+<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="comment">    /** Diagnositics/debugging string of the command invoked for </span>
+<a name="l00144"></a>00144 <span class="comment">     *  this process [only present if APR_HAS_PROC_INVOKED is true]</span>
+<a name="l00145"></a>00145 <span class="comment">     * @remark Only enabled on Win32 by default.</span>
+<a name="l00146"></a>00146 <span class="comment">     * @bug This should either always or never be present in release</span>
+<a name="l00147"></a>00147 <span class="comment">     * builds - since it breaks binary compatibility.  We may enable</span>
+<a name="l00148"></a>00148 <span class="comment">     * it always in APR 1.0 yet leave it undefined in most cases.</span>
+<a name="l00149"></a>00149 <span class="comment">     */</span>
+<a name="l00150"></a><a class="code" href="structapr__proc__t.html#72ed1c58c3f08ffa7202fa80e870cd54">00150</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__proc__t.html#72ed1c58c3f08ffa7202fa80e870cd54">invoked</a>;
+<a name="l00151"></a>00151 <span class="preprocessor">#endif</span>
+<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor">#if defined(WIN32) || defined(DOXYGEN)</span>
+<a name="l00153"></a>00153 <span class="preprocessor"></span><span class="comment">    /** (Win32 only) Creator's handle granting access to the process</span>
+<a name="l00154"></a>00154 <span class="comment">     * @remark This handle is closed and reset to NULL in every case</span>
+<a name="l00155"></a>00155 <span class="comment">     * corresponding to a waitpid() on Unix which returns the exit status.</span>
+<a name="l00156"></a>00156 <span class="comment">     * Therefore Win32 correspond's to Unix's zombie reaping characteristics</span>
+<a name="l00157"></a>00157 <span class="comment">     * and avoids potential handle leaks.</span>
+<a name="l00158"></a>00158 <span class="comment">     */</span>
+<a name="l00159"></a><a class="code" href="structapr__proc__t.html#a1f17cce2b442d92893b9c63053b6771">00159</a>     HANDLE <a class="code" href="structapr__proc__t.html#a1f17cce2b442d92893b9c63053b6771">hproc</a>;
+<a name="l00160"></a>00160 <span class="preprocessor">#endif</span>
+<a name="l00161"></a>00161 <span class="preprocessor"></span>} <a class="code" href="structapr__proc__t.html">apr_proc_t</a>;
+<a name="l00162"></a>00162 <span class="comment"></span>
+<a name="l00163"></a>00163 <span class="comment">/**</span>
+<a name="l00164"></a>00164 <span class="comment"> * The prototype for APR child errfn functions.  (See the description</span>
+<a name="l00165"></a>00165 <span class="comment"> * of apr_procattr_child_errfn_set() for more information.)</span>
+<a name="l00166"></a>00166 <span class="comment"> * It is passed the following parameters:</span>
+<a name="l00167"></a>00167 <span class="comment"> * @param pool Pool associated with the apr_proc_t.  If your child</span>
+<a name="l00168"></a>00168 <span class="comment"> *             error function needs user data, associate it with this</span>
+<a name="l00169"></a>00169 <span class="comment"> *             pool.</span>
+<a name="l00170"></a>00170 <span class="comment"> * @param err APR error code describing the error</span>
+<a name="l00171"></a>00171 <span class="comment"> * @param description Text description of type of processing which failed</span>
+<a name="l00172"></a>00172 <span class="comment"> */</span>
+<a name="l00173"></a><a class="code" href="group__apr__thread__proc.html#g8f8642f468f05b0ac2b1426b723af100">00173</a> <span class="keyword">typedef</span> void (<a class="code" href="group__apr__thread__proc.html#g8f8642f468f05b0ac2b1426b723af100">apr_child_errfn_t</a>)(<a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *proc, <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> err,
+<a name="l00174"></a>00174                                  <span class="keyword">const</span> <span class="keywordtype">char</span> *description);
+<a name="l00175"></a>00175 <span class="comment"></span>
+<a name="l00176"></a>00176 <span class="comment">/** Opaque Thread structure. */</span>
+<a name="l00177"></a><a class="code" href="group__apr__thread__proc.html#g646c71351e723d84f8cc8c8d1d5937be">00177</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g646c71351e723d84f8cc8c8d1d5937be">apr_thread_t</a>           apr_thread_t;
+<a name="l00178"></a>00178 <span class="comment"></span>
+<a name="l00179"></a>00179 <span class="comment">/** Opaque Thread attributes structure. */</span>
+<a name="l00180"></a><a class="code" href="group__apr__thread__proc.html#g35de571e9944871c10b38d8feef885ac">00180</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g35de571e9944871c10b38d8feef885ac">apr_threadattr_t</a>       apr_threadattr_t;
+<a name="l00181"></a>00181 <span class="comment"></span>
+<a name="l00182"></a>00182 <span class="comment">/** Opaque Process attributes structure. */</span>
+<a name="l00183"></a><a class="code" href="group__apr__thread__proc.html#g0d83919a6a0dd609598a864917f8b339">00183</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g0d83919a6a0dd609598a864917f8b339">apr_procattr_t</a>         apr_procattr_t;
+<a name="l00184"></a>00184 <span class="comment"></span>
+<a name="l00185"></a>00185 <span class="comment">/** Opaque control variable for one-time atomic variables.  */</span>
+<a name="l00186"></a><a class="code" href="group__apr__thread__proc.html#g91841bcf20d0579e8e6acc6d3c220ac1">00186</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g91841bcf20d0579e8e6acc6d3c220ac1">apr_thread_once_t</a>      apr_thread_once_t;
+<a name="l00187"></a>00187 <span class="comment"></span>
+<a name="l00188"></a>00188 <span class="comment">/** Opaque thread private address space. */</span>
+<a name="l00189"></a><a class="code" href="group__apr__thread__proc.html#g337c9c1bd2d47740022071a5c41f2edb">00189</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#g337c9c1bd2d47740022071a5c41f2edb">apr_threadkey_t</a>        apr_threadkey_t;
+<a name="l00190"></a>00190 <span class="comment"></span>
+<a name="l00191"></a>00191 <span class="comment">/** Opaque record of child process. */</span>
+<a name="l00192"></a><a class="code" href="group__apr__thread__proc.html#gfc52ee8b19a7b222278d31ebb3f11a71">00192</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__thread__proc.html#gfc52ee8b19a7b222278d31ebb3f11a71">apr_other_child_rec_t</a>  apr_other_child_rec_t;
+<a name="l00193"></a>00193 <span class="comment"></span>
+<a name="l00194"></a>00194 <span class="comment">/**</span>
+<a name="l00195"></a>00195 <span class="comment"> * The prototype for any APR thread worker functions.</span>
+<a name="l00196"></a>00196 <span class="comment"> */</span>
+<a name="l00197"></a><a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">00197</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *(<a class="code" href="group__apr__platform.html#gde8f829f9bd98fd4386894acf72edd7c">APR_THREAD_FUNC</a> *<a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">apr_thread_start_t</a>)(apr_thread_t*, <span class="keywordtype">void</span>*);
+<a name="l00198"></a>00198 
+<a name="l00199"></a><a class="code" href="group__apr__thread__proc.html#g3eaec78633742e7e0cb9480a21477aff">00199</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
+<a name="l00200"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff33580ab0809e9498855fbdde8a1714ef">00200</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff33580ab0809e9498855fbdde8a1714ef">APR_KILL_NEVER</a>,             <span class="comment">/**&lt; process is never sent any signals */</span>
+<a name="l00201"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477afff45d0f72811399b394d1311384e2dfe4">00201</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477afff45d0f72811399b394d1311384e2dfe4">APR_KILL_ALWAYS</a>,            <span class="comment">/**&lt; process is sent SIGKILL on apr_pool_t cleanup */</span>
+<a name="l00202"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff16a47aa786b1c1f31ef02353bcae9a1a">00202</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff16a47aa786b1c1f31ef02353bcae9a1a">APR_KILL_AFTER_TIMEOUT</a>,     <span class="comment">/**&lt; SIGTERM, wait 3 seconds, SIGKILL */</span>
+<a name="l00203"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff6ada2605856ac94826edbe824e64e503">00203</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff6ada2605856ac94826edbe824e64e503">APR_JUST_WAIT</a>,              <span class="comment">/**&lt; wait forever for the process to complete */</span>
+<a name="l00204"></a><a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff24d6f47785093be4cea2a922eeaed098">00204</a>     <a class="code" href="group__apr__thread__proc.html#gg3eaec78633742e7e0cb9480a21477aff24d6f47785093be4cea2a922eeaed098">APR_KILL_ONLY_ONCE</a>          <span class="comment">/**&lt; send SIGTERM and then wait */</span>
+<a name="l00205"></a>00205 } <a class="code" href="group__apr__thread__proc.html#g3eaec78633742e7e0cb9480a21477aff">apr_kill_conditions_e</a>;
+<a name="l00206"></a>00206 
+<a name="l00207"></a>00207 <span class="comment">/* Thread Function definitions */</span>
+<a name="l00208"></a>00208 
+<a name="l00209"></a>00209 <span class="preprocessor">#if APR_HAS_THREADS</span>
+<a name="l00210"></a>00210 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00211"></a>00211 <span class="comment">/**</span>
+<a name="l00212"></a>00212 <span class="comment"> * Create and initialize a new threadattr variable</span>
+<a name="l00213"></a>00213 <span class="comment"> * @param new_attr The newly created threadattr.</span>
+<a name="l00214"></a>00214 <span class="comment"> * @param cont The pool to use</span>
+<a name="l00215"></a>00215 <span class="comment"> */</span>
+<a name="l00216"></a>00216 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g66c2f55e5dff9ac37bd32e9febd38da5">apr_threadattr_create</a>(apr_threadattr_t **new_attr, 
+<a name="l00217"></a>00217                                                 <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
+<a name="l00218"></a>00218 <span class="comment"></span>
+<a name="l00219"></a>00219 <span class="comment">/**</span>
+<a name="l00220"></a>00220 <span class="comment"> * Set if newly created threads should be created in detached state.</span>
+<a name="l00221"></a>00221 <span class="comment"> * @param attr The threadattr to affect </span>
+<a name="l00222"></a>00222 <span class="comment"> * @param on Non-zero if detached threads should be created.</span>
+<a name="l00223"></a>00223 <span class="comment"> */</span>
+<a name="l00224"></a>00224 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g85d44b3b021f28116122d5e40e024648">apr_threadattr_detach_set</a>(apr_threadattr_t *attr, 
+<a name="l00225"></a>00225                                                     apr_int32_t on);
+<a name="l00226"></a>00226 <span class="comment"></span>
+<a name="l00227"></a>00227 <span class="comment">/**</span>
+<a name="l00228"></a>00228 <span class="comment"> * Get the detach state for this threadattr.</span>
+<a name="l00229"></a>00229 <span class="comment"> * @param attr The threadattr to reference</span>
+<a name="l00230"></a>00230 <span class="comment"> * @return APR_DETACH if threads are to be detached, or APR_NOTDETACH</span>
+<a name="l00231"></a>00231 <span class="comment"> * if threads are to be joinable. </span>
+<a name="l00232"></a>00232 <span class="comment"> */</span>
+<a name="l00233"></a>00233 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ge5b7cdb3de542d1b7b52fe5d9d8cb00b">apr_threadattr_detach_get</a>(apr_threadattr_t *attr);
+<a name="l00234"></a>00234 <span class="comment"></span>
+<a name="l00235"></a>00235 <span class="comment">/**</span>
+<a name="l00236"></a>00236 <span class="comment"> * Set the stack size of newly created threads.</span>
+<a name="l00237"></a>00237 <span class="comment"> * @param attr The threadattr to affect </span>
+<a name="l00238"></a>00238 <span class="comment"> * @param stacksize The stack size in bytes</span>
+<a name="l00239"></a>00239 <span class="comment"> */</span>
+<a name="l00240"></a>00240 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g7849e0d637338a18cb44f66f11f28ed1">apr_threadattr_stacksize_set</a>(apr_threadattr_t *attr,
+<a name="l00241"></a>00241                                                        apr_size_t stacksize);
+<a name="l00242"></a>00242 <span class="comment"></span>
+<a name="l00243"></a>00243 <span class="comment">/**</span>
+<a name="l00244"></a>00244 <span class="comment"> * Set the stack guard area size of newly created threads.</span>
+<a name="l00245"></a>00245 <span class="comment"> * @param attr The threadattr to affect </span>
+<a name="l00246"></a>00246 <span class="comment"> * @param guardsize The stack guard area size in bytes</span>
+<a name="l00247"></a>00247 <span class="comment"> * @note Thread library implementations commonly use a "guard area"</span>
+<a name="l00248"></a>00248 <span class="comment"> * after each thread's stack which is not readable or writable such that</span>
+<a name="l00249"></a>00249 <span class="comment"> * stack overflows cause a segfault; this consumes e.g. 4K of memory</span>
+<a name="l00250"></a>00250 <span class="comment"> * and increases memory management overhead.  Setting the guard area</span>
+<a name="l00251"></a>00251 <span class="comment"> * size to zero hence trades off reliable behaviour on stack overflow</span>
+<a name="l00252"></a>00252 <span class="comment"> * for performance. */</span>
+<a name="l00253"></a>00253 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g2e732f2913291180c0c484f57d727140">apr_threadattr_guardsize_set</a>(apr_threadattr_t *attr,
+<a name="l00254"></a>00254                                                        apr_size_t guardsize);
+<a name="l00255"></a>00255 <span class="comment"></span>
+<a name="l00256"></a>00256 <span class="comment">/**</span>
+<a name="l00257"></a>00257 <span class="comment"> * Create a new thread of execution</span>
+<a name="l00258"></a>00258 <span class="comment"> * @param new_thread The newly created thread handle.</span>
+<a name="l00259"></a>00259 <span class="comment"> * @param attr The threadattr to use to determine how to create the thread</span>
+<a name="l00260"></a>00260 <span class="comment"> * @param func The function to start the new thread in</span>
+<a name="l00261"></a>00261 <span class="comment"> * @param data Any data to be passed to the starting function</span>
+<a name="l00262"></a>00262 <span class="comment"> * @param cont The pool to use</span>
+<a name="l00263"></a>00263 <span class="comment"> */</span>
+<a name="l00264"></a>00264 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#geba6593f43f1de94c2b4495dd72b0e9f">apr_thread_create</a>(apr_thread_t **new_thread, 
+<a name="l00265"></a>00265                                             apr_threadattr_t *attr, 
+<a name="l00266"></a>00266                                             <a class="code" href="group__apr__thread__proc.html#g076447f821650728a097b65b1c867abb">apr_thread_start_t</a> func, 
+<a name="l00267"></a>00267                                             <span class="keywordtype">void</span> *data, <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
+<a name="l00268"></a>00268 <span class="comment"></span>
+<a name="l00269"></a>00269 <span class="comment">/**</span>
+<a name="l00270"></a>00270 <span class="comment"> * stop the current thread</span>
+<a name="l00271"></a>00271 <span class="comment"> * @param thd The thread to stop</span>
+<a name="l00272"></a>00272 <span class="comment"> * @param retval The return value to pass back to any thread that cares</span>
+<a name="l00273"></a>00273 <span class="comment"> */</span>
+<a name="l00274"></a>00274 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g0e35365e530578bca1b4bea522ac8c85">apr_thread_exit</a>(apr_thread_t *thd, 
+<a name="l00275"></a>00275                                           <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> retval);
+<a name="l00276"></a>00276 <span class="comment"></span>
+<a name="l00277"></a>00277 <span class="comment">/**</span>
+<a name="l00278"></a>00278 <span class="comment"> * block until the desired thread stops executing.</span>
+<a name="l00279"></a>00279 <span class="comment"> * @param retval The return value from the dead thread.</span>
+<a name="l00280"></a>00280 <span class="comment"> * @param thd The thread to join</span>
+<a name="l00281"></a>00281 <span class="comment"> */</span>
+<a name="l00282"></a>00282 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g1b950f36fa5bcd5a64887073f46f6d13">apr_thread_join</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> *retval, 
+<a name="l00283"></a>00283                                           apr_thread_t *thd); 
+<a name="l00284"></a>00284 <span class="comment"></span>
+<a name="l00285"></a>00285 <span class="comment">/**</span>
+<a name="l00286"></a>00286 <span class="comment"> * force the current thread to yield the processor</span>
+<a name="l00287"></a>00287 <span class="comment"> */</span>
+<a name="l00288"></a>00288 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group__apr__thread__proc.html#gcd69fb862c069cb6f297f65d64b5c102">apr_thread_yield</a>(<span class="keywordtype">void</span>);
+<a name="l00289"></a>00289 <span class="comment"></span>
+<a name="l00290"></a>00290 <span class="comment">/**</span>
+<a name="l00291"></a>00291 <span class="comment"> * Initialize the control variable for apr_thread_once.  If this isn't</span>
+<a name="l00292"></a>00292 <span class="comment"> * called, apr_initialize won't work.</span>
+<a name="l00293"></a>00293 <span class="comment"> * @param control The control variable to initialize</span>
+<a name="l00294"></a>00294 <span class="comment"> * @param p The pool to allocate data from.</span>
+<a name="l00295"></a>00295 <span class="comment"> */</span>
+<a name="l00296"></a>00296 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g63f3bf667151053e45d5a2029daeda0d">apr_thread_once_init</a>(apr_thread_once_t **control,
+<a name="l00297"></a>00297                                                <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);
+<a name="l00298"></a>00298 <span class="comment"></span>
+<a name="l00299"></a>00299 <span class="comment">/**</span>
+<a name="l00300"></a>00300 <span class="comment"> * Run the specified function one time, regardless of how many threads</span>
+<a name="l00301"></a>00301 <span class="comment"> * call it.</span>
+<a name="l00302"></a>00302 <span class="comment"> * @param control The control variable.  The same variable should</span>
+<a name="l00303"></a>00303 <span class="comment"> *                be passed in each time the function is tried to be</span>
+<a name="l00304"></a>00304 <span class="comment"> *                called.  This is how the underlying functions determine</span>
+<a name="l00305"></a>00305 <span class="comment"> *                if the function has ever been called before.</span>
+<a name="l00306"></a>00306 <span class="comment"> * @param func The function to call.</span>
+<a name="l00307"></a>00307 <span class="comment"> */</span>
+<a name="l00308"></a>00308 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g8f3645ee52ff07566c92181b4ce732d8">apr_thread_once</a>(apr_thread_once_t *control,
+<a name="l00309"></a>00309                                           <span class="keywordtype">void</span> (*func)(<span class="keywordtype">void</span>));
+<a name="l00310"></a>00310 <span class="comment"></span>
+<a name="l00311"></a>00311 <span class="comment">/**</span>
+<a name="l00312"></a>00312 <span class="comment"> * detach a thread</span>
+<a name="l00313"></a>00313 <span class="comment"> * @param thd The thread to detach </span>
+<a name="l00314"></a>00314 <span class="comment"> */</span>
+<a name="l00315"></a>00315 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gdbd186912d5f6f2a19a175e1e02ba10e">apr_thread_detach</a>(apr_thread_t *thd);
+<a name="l00316"></a>00316 <span class="comment"></span>
+<a name="l00317"></a>00317 <span class="comment">/**</span>
+<a name="l00318"></a>00318 <span class="comment"> * Return the pool associated with the current thread.</span>
+<a name="l00319"></a>00319 <span class="comment"> * @param data The user data associated with the thread.</span>
+<a name="l00320"></a>00320 <span class="comment"> * @param key The key to associate with the data</span>
+<a name="l00321"></a>00321 <span class="comment"> * @param thread The currently open thread.</span>
+<a name="l00322"></a>00322 <span class="comment"> */</span>
+<a name="l00323"></a>00323 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gd799c8140ed068a12f1dbe134423eae7">apr_thread_data_get</a>(<span class="keywordtype">void</span> **data, const <span class="keywordtype">char</span> *key,
 <a name="l00324"></a>00324                                              apr_thread_t *thread);
 <a name="l00325"></a>00325 <span class="comment"></span>
 <a name="l00326"></a>00326 <span class="comment">/**</span>
-<a name="l00327"></a>00327 <span class="comment"> * Create and initialize a new thread private address space</span>
-<a name="l00328"></a>00328 <span class="comment"> * @param key The thread private handle.</span>
-<a name="l00329"></a>00329 <span class="comment"> * @param dest The destructor to use when freeing the private memory.</span>
-<a name="l00330"></a>00330 <span class="comment"> * @param cont The pool to use</span>
-<a name="l00331"></a>00331 <span class="comment"> */</span>
-<a name="l00332"></a>00332 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gcb9553b2b3165388bfc0a54b1148804a">apr_threadkey_private_create</a>(apr_threadkey_t **key, 
-<a name="l00333"></a>00333                                                     <span class="keywordtype">void</span> (*dest)(<span class="keywordtype">void</span> *),
-<a name="l00334"></a>00334                                                     <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
-<a name="l00335"></a>00335 <span class="comment"></span>
-<a name="l00336"></a>00336 <span class="comment">/**</span>
-<a name="l00337"></a>00337 <span class="comment"> * Get a pointer to the thread private memory</span>
-<a name="l00338"></a>00338 <span class="comment"> * @param new_mem The data stored in private memory </span>
-<a name="l00339"></a>00339 <span class="comment"> * @param key The handle for the desired thread private memory </span>
-<a name="l00340"></a>00340 <span class="comment"> */</span>
-<a name="l00341"></a>00341 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g371c87c122cc3df0b7ad0031f6e11167">apr_threadkey_private_get</a>(<span class="keywordtype">void</span> **new_mem, 
-<a name="l00342"></a>00342                                                  apr_threadkey_t *key);
-<a name="l00343"></a>00343 <span class="comment"></span>
-<a name="l00344"></a>00344 <span class="comment">/**</span>
-<a name="l00345"></a>00345 <span class="comment"> * Set the data to be stored in thread private memory</span>
-<a name="l00346"></a>00346 <span class="comment"> * @param priv The data to be stored in private memory </span>
-<a name="l00347"></a>00347 <span class="comment"> * @param key The handle for the desired thread private memory </span>
-<a name="l00348"></a>00348 <span class="comment"> */</span>
-<a name="l00349"></a>00349 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g63501a064ca7f1818aa056b40146aa0b">apr_threadkey_private_set</a>(<span class="keywordtype">void</span> *priv, 
-<a name="l00350"></a>00350                                                  apr_threadkey_t *key);
-<a name="l00351"></a>00351 <span class="comment"></span>
-<a name="l00352"></a>00352 <span class="comment">/**</span>
-<a name="l00353"></a>00353 <span class="comment"> * Free the thread private memory</span>
-<a name="l00354"></a>00354 <span class="comment"> * @param key The handle for the desired thread private memory </span>
-<a name="l00355"></a>00355 <span class="comment"> */</span>
-<a name="l00356"></a>00356 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g20b9b79892a6532784fff023a4ebd8cf">apr_threadkey_private_delete</a>(apr_threadkey_t *key);
-<a name="l00357"></a>00357 <span class="comment"></span>
-<a name="l00358"></a>00358 <span class="comment">/**</span>
-<a name="l00359"></a>00359 <span class="comment"> * Return the pool associated with the current threadkey.</span>
-<a name="l00360"></a>00360 <span class="comment"> * @param data The user data associated with the threadkey.</span>
-<a name="l00361"></a>00361 <span class="comment"> * @param key The key associated with the data</span>
-<a name="l00362"></a>00362 <span class="comment"> * @param threadkey The currently open threadkey.</span>
-<a name="l00363"></a>00363 <span class="comment"> */</span>
-<a name="l00364"></a>00364 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ge203664972dfc5c555620ae1788f5b48">apr_threadkey_data_get</a>(<span class="keywordtype">void</span> **data, const <span class="keywordtype">char</span> *key,
-<a name="l00365"></a>00365                                                 apr_threadkey_t *threadkey);
-<a name="l00366"></a>00366 <span class="comment"></span>
-<a name="l00367"></a>00367 <span class="comment">/**</span>
-<a name="l00368"></a>00368 <span class="comment"> * Return the pool associated with the current threadkey.</span>
-<a name="l00369"></a>00369 <span class="comment"> * @param data The data to set.</span>
-<a name="l00370"></a>00370 <span class="comment"> * @param key The key to associate with the data.</span>
-<a name="l00371"></a>00371 <span class="comment"> * @param cleanup The cleanup routine to use when the file is destroyed.</span>
-<a name="l00372"></a>00372 <span class="comment"> * @param threadkey The currently open threadkey.</span>
-<a name="l00373"></a>00373 <span class="comment"> */</span>
-<a name="l00374"></a>00374 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g1059158f34dded87f21ba82af1211951">apr_threadkey_data_set</a>(<span class="keywordtype">void</span> *data, const <span class="keywordtype">char</span> *key,
-<a name="l00375"></a>00375                                                 <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> (*cleanup) (<span class="keywordtype">void</span> *),
+<a name="l00327"></a>00327 <span class="comment"> * Return the pool associated with the current thread.</span>
+<a name="l00328"></a>00328 <span class="comment"> * @param data The user data to associate with the thread.</span>
+<a name="l00329"></a>00329 <span class="comment"> * @param key The key to use for associating the data with the thread</span>
+<a name="l00330"></a>00330 <span class="comment"> * @param cleanup The cleanup routine to use when the thread is destroyed.</span>
+<a name="l00331"></a>00331 <span class="comment"> * @param thread The currently open thread.</span>
+<a name="l00332"></a>00332 <span class="comment"> */</span>
+<a name="l00333"></a>00333 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ga90d79c9935692db4f27a6573f437221">apr_thread_data_set</a>(<span class="keywordtype">void</span> *data, const <span class="keywordtype">char</span> *key,
+<a name="l00334"></a>00334                                              <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> (*cleanup) (<span class="keywordtype">void</span> *),
+<a name="l00335"></a>00335                                              apr_thread_t *thread);
+<a name="l00336"></a>00336 <span class="comment"></span>
+<a name="l00337"></a>00337 <span class="comment">/**</span>
+<a name="l00338"></a>00338 <span class="comment"> * Create and initialize a new thread private address space</span>
+<a name="l00339"></a>00339 <span class="comment"> * @param key The thread private handle.</span>
+<a name="l00340"></a>00340 <span class="comment"> * @param dest The destructor to use when freeing the private memory.</span>
+<a name="l00341"></a>00341 <span class="comment"> * @param cont The pool to use</span>
+<a name="l00342"></a>00342 <span class="comment"> */</span>
+<a name="l00343"></a>00343 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#gcb9553b2b3165388bfc0a54b1148804a">apr_threadkey_private_create</a>(apr_threadkey_t **key, 
+<a name="l00344"></a>00344                                                     <span class="keywordtype">void</span> (*dest)(<span class="keywordtype">void</span> *),
+<a name="l00345"></a>00345                                                     <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
+<a name="l00346"></a>00346 <span class="comment"></span>
+<a name="l00347"></a>00347 <span class="comment">/**</span>
+<a name="l00348"></a>00348 <span class="comment"> * Get a pointer to the thread private memory</span>
+<a name="l00349"></a>00349 <span class="comment"> * @param new_mem The data stored in private memory </span>
+<a name="l00350"></a>00350 <span class="comment"> * @param key The handle for the desired thread private memory </span>
+<a name="l00351"></a>00351 <span class="comment"> */</span>
+<a name="l00352"></a>00352 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g371c87c122cc3df0b7ad0031f6e11167">apr_threadkey_private_get</a>(<span class="keywordtype">void</span> **new_mem, 
+<a name="l00353"></a>00353                                                  apr_threadkey_t *key);
+<a name="l00354"></a>00354 <span class="comment"></span>
+<a name="l00355"></a>00355 <span class="comment">/**</span>
+<a name="l00356"></a>00356 <span class="comment"> * Set the data to be stored in thread private memory</span>
+<a name="l00357"></a>00357 <span class="comment"> * @param priv The data to be stored in private memory </span>
+<a name="l00358"></a>00358 <span class="comment"> * @param key The handle for the desired thread private memory </span>
+<a name="l00359"></a>00359 <span class="comment"> */</span>
+<a name="l00360"></a>00360 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g63501a064ca7f1818aa056b40146aa0b">apr_threadkey_private_set</a>(<span class="keywordtype">void</span> *priv, 
+<a name="l00361"></a>00361                                                  apr_threadkey_t *key);
+<a name="l00362"></a>00362 <span class="comment"></span>
+<a name="l00363"></a>00363 <span class="comment">/**</span>
+<a name="l00364"></a>00364 <span class="comment"> * Free the thread private memory</span>
+<a name="l00365"></a>00365 <span class="comment"> * @param key The handle for the desired thread private memory </span>
+<a name="l00366"></a>00366 <span class="comment"> */</span>
+<a name="l00367"></a>00367 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g20b9b79892a6532784fff023a4ebd8cf">apr_threadkey_private_delete</a>(apr_threadkey_t *key);
+<a name="l00368"></a>00368 <span class="comment"></span>
+<a name="l00369"></a>00369 <span class="comment">/**</span>
+<a name="l00370"></a>00370 <span class="comment"> * Return the pool associated with the current threadkey.</span>
+<a name="l00371"></a>00371 <span class="comment"> * @param data The user data associated with the threadkey.</span>
+<a name="l00372"></a>00372 <span class="comment"> * @param key The key associated with the data</span>
+<a name="l00373"></a>00373 <span class="comment"> * @param threadkey The currently open threadkey.</span>
+<a name="l00374"></a>00374 <span class="comment"> */</span>
+<a name="l00375"></a>00375 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#ge203664972dfc5c555620ae1788f5b48">apr_threadkey_data_get</a>(<span class="keywordtype">void</span> **data, const <span class="keywordtype">char</span> *key,
 <a name="l00376"></a>00376                                                 apr_threadkey_t *threadkey);
-<a name="l00377"></a>00377 
-<a name="l00378"></a>00378 <span class="preprocessor">#endif</span>
-<a name="l00379"></a>00379 <span class="preprocessor"></span><span class="comment"></span>
-<a name="l00380"></a>00380 <span class="comment">/**</span>
-<a name="l00381"></a>00381 <span class="comment"> * Create and initialize a new procattr variable</span>
-<a name="l00382"></a>00382 <span class="comment"> * @param new_attr The newly created procattr. </span>
-<a name="l00383"></a>00383 <span class="comment"> * @param cont The pool to use</span>
+<a name="l00377"></a>00377 <span class="comment"></span>
+<a name="l00378"></a>00378 <span class="comment">/**</span>
+<a name="l00379"></a>00379 <span class="comment"> * Return the pool associated with the current threadkey.</span>
+<a name="l00380"></a>00380 <span class="comment"> * @param data The data to set.</span>
+<a name="l00381"></a>00381 <span class="comment"> * @param key The key to associate with the data.</span>
+<a name="l00382"></a>00382 <span class="comment"> * @param cleanup The cleanup routine to use when the file is destroyed.</span>
+<a name="l00383"></a>00383 <span class="comment"> * @param threadkey The currently open threadkey.</span>
 <a name="l00384"></a>00384 <span class="comment"> */</span>
-<a name="l00385"></a>00385 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g90f8ef684e601c110daad9b63da53cf3">apr_procattr_create</a>(apr_procattr_t **new_attr,
-<a name="l00386"></a>00386                                                   <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
-<a name="l00387"></a>00387 <span class="comment"></span>
-<a name="l00388"></a>00388 <span class="comment">/**</span>
-<a name="l00389"></a>00389 <span class="comment"> * Determine if any of stdin, stdout, or stderr should be linked to pipes </span>
-<a name="l00390"></a>00390 <span class="comment"> * when starting a child process.</span>
-<a name="l00391"></a>00391 <span class="comment"> * @param attr The procattr we care about. </span>
-<a name="l00392"></a>00392 <span class="comment"> * @param in Should stdin be a pipe back to the parent?</span>
-<a name="l00393"></a>00393 <span class="comment"> * @param out Should stdout be a pipe back to the parent?</span>
-<a name="l00394"></a>00394 <span class="comment"> * @param err Should stderr be a pipe back to the parent?</span>
+<a name="l00385"></a>00385 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g1059158f34dded87f21ba82af1211951">apr_threadkey_data_set</a>(<span class="keywordtype">void</span> *data, const <span class="keywordtype">char</span> *key,
+<a name="l00386"></a>00386                                                 <a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> (*cleanup) (<span class="keywordtype">void</span> *),
+<a name="l00387"></a>00387                                                 apr_threadkey_t *threadkey);
+<a name="l00388"></a>00388 
+<a name="l00389"></a>00389 <span class="preprocessor">#endif</span>
+<a name="l00390"></a>00390 <span class="preprocessor"></span><span class="comment"></span>
+<a name="l00391"></a>00391 <span class="comment">/**</span>
+<a name="l00392"></a>00392 <span class="comment"> * Create and initialize a new procattr variable</span>
+<a name="l00393"></a>00393 <span class="comment"> * @param new_attr The newly created procattr. </span>
+<a name="l00394"></a>00394 <span class="comment"> * @param cont The pool to use</span>
 <a name="l00395"></a>00395 <span class="comment"> */</span>
-<a name="l00396"></a>00396 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g2b1598bc6f5ab0bfcf2e55096d563c98">apr_procattr_io_set</a>(apr_procattr_t *attr, 
-<a name="l00397"></a>00397                                              apr_int32_t in, apr_int32_t out,
-<a name="l00398"></a>00398                                              apr_int32_t err);
-<a name="l00399"></a>00399 <span class="comment"></span>
-<a name="l00400"></a>00400 <span class="comment">/**</span>
-<a name="l00401"></a>00401 <span class="comment"> * Set the child_in and/or parent_in values to existing apr_file_t values.</span>
+<a name="l00396"></a>00396 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g90f8ef684e601c110daad9b63da53cf3">apr_procattr_create</a>(apr_procattr_t **new_attr,
+<a name="l00397"></a>00397                                                   <a class="code" href="group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);
+<a name="l00398"></a>00398 <span class="comment"></span>
+<a name="l00399"></a>00399 <span class="comment">/**</span>
+<a name="l00400"></a>00400 <span class="comment"> * Determine if any of stdin, stdout, or stderr should be linked to pipes </span>
+<a name="l00401"></a>00401 <span class="comment"> * when starting a child process.</span>
 <a name="l00402"></a>00402 <span class="comment"> * @param attr The procattr we care about. </span>
-<a name="l00403"></a>00403 <span class="comment"> * @param child_in apr_file_t value to use as child_in. Must be a valid file.</span>
-<a name="l00404"></a>00404 <span class="comment"> * @param parent_in apr_file_t value to use as parent_in. Must be a valid file.</span>
-<a name="l00405"></a>00405 <span class="comment"> * @remark  This is NOT a required initializer function. This is</span>
-<a name="l00406"></a>00406 <span class="comment"> *          useful if you have already opened a pipe (or multiple files)</span>
-<a name="l00407"></a>00407 <span class="comment"> *          that you wish to use, perhaps persistently across multiple</span>
-<a name="l00408"></a>00408 <span class="comment"> *          process invocations - such as a log file. You can save some </span>
-<a name="l00409"></a>00409 <span class="comment"> *          extra function calls by not creating your own pipe since this</span>
-<a name="l00410"></a>00410 <span class="comment"> *          creates one in the process space for you.</span>
-<a name="l00411"></a>00411 <span class="comment"> */</span>
-<a name="l00412"></a>00412 <a class="code" href="group__apr__platform.html#gd7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__thread__proc.html#g24f40119b1aa07dd45a681a44915cb1b">apr_procattr_child_in_set</a>(struct apr_procattr_t *attr,
-<a name="l00413"></a>00413                                                   <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *child_in,
-<a name="l00414"></a>00414                                                   <a class="code" href="group__apr__file__io.html#ga46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *parent_in);

[... 806 lines stripped ...]


Mime
View raw message