Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 243222a43997d44a8ac787d018c9535c > files > 142

apr-docs-1.2.7-11.el5_6.5.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache Portable Runtime: Process Locking Routines</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<h1>Process Locking Routines<br>
<small>
[<a class="el" href="group___a_p_r.html">Apache Portability Runtime library</a>]</small>
</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a></td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#gada99139636a0bedceec1c967068de0e">apr_lockmech_e</a> { <br>
&nbsp;&nbsp;<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0ef637780d7874140f6e4f59bccac83436">APR_LOCK_FCNTL</a>, 
<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0eef9b8dbb142fb7eb1bb636a35b4af252">APR_LOCK_FLOCK</a>, 
<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0e63766c2539622a6a36397526bcd638ba">APR_LOCK_SYSVSEM</a>, 
<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0eeb9be048b123bbc28ab63b6f97ecc4f1">APR_LOCK_PROC_PTHREAD</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0ea1f79a9c4a072a0d702e35b94ffdc140">APR_LOCK_POSIXSEM</a>, 
<a class="el" href="group__apr__proc__mutex.html#ggada99139636a0bedceec1c967068de0e89a14684624c826950febd5714904119">APR_LOCK_DEFAULT</a>
<br>
 }</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#gc35185e42438155d136e86e81b603bfc">apr_proc_mutex_create</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> **mutex, const char *fname, <a class="el" href="group__apr__proc__mutex.html#gada99139636a0bedceec1c967068de0e">apr_lockmech_e</a> mech, <a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a> *pool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g1aa4b0d989aa97baf6687d9bfcf838a0">apr_proc_mutex_child_init</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> **mutex, const char *fname, <a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a> *pool)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g0ed839c024c3da10dd738bbd2fff9360">apr_proc_mutex_lock</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g7272f3b8bdc57152eccbad25e2b74d23">apr_proc_mutex_trylock</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g25b91bde16ff68d311bc0bb01db7f37f">apr_proc_mutex_unlock</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#gbd72f5edd4411ebb26c516df186a32fa">apr_proc_mutex_destroy</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g593c756007c8030ab797b09458804d82">apr_proc_mutex_cleanup</a> (void *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g90c162d605dac04b4f7755f6b44608d6">apr_proc_mutex_lockfile</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#gf095bb21ae224142b44560fb34949d42">apr_proc_mutex_name</a> (<a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *mutex)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g191506708f2168ee222b786ea3eb3f48">apr_proc_mutex_defname</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__proc__mutex.html#g6529ce013ede69cc1587879051a504aa">apr_proc_mutex_pool_get</a> (const <a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *theproc_mutex)</td></tr>

</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="g912817d4c3ea0c581c9049d4d9e58170"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_t" ref="g912817d4c3ea0c581c9049d4d9e58170" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> <a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Opaque structure representing a process mutex. 
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="gada99139636a0bedceec1c967068de0e"></a><!-- doxytag: member="apr_proc_mutex.h::apr_lockmech_e" ref="gada99139636a0bedceec1c967068de0e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__apr__proc__mutex.html#gada99139636a0bedceec1c967068de0e">apr_lockmech_e</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Enumerated potential types for APR process locking methods <dl compact><dt><b>Warning:</b></dt><dd>Check APR_HAS_foo_SERIALIZE defines to see if the platform supports APR_LOCK_foo. Only APR_LOCK_DEFAULT is portable. </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0ef637780d7874140f6e4f59bccac83436"></a><!-- doxytag: member="APR_LOCK_FCNTL" ref="ggada99139636a0bedceec1c967068de0ef637780d7874140f6e4f59bccac83436" args="" -->APR_LOCK_FCNTL</em>&nbsp;</td><td>
fcntl() </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0eef9b8dbb142fb7eb1bb636a35b4af252"></a><!-- doxytag: member="APR_LOCK_FLOCK" ref="ggada99139636a0bedceec1c967068de0eef9b8dbb142fb7eb1bb636a35b4af252" args="" -->APR_LOCK_FLOCK</em>&nbsp;</td><td>
flock() </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0e63766c2539622a6a36397526bcd638ba"></a><!-- doxytag: member="APR_LOCK_SYSVSEM" ref="ggada99139636a0bedceec1c967068de0e63766c2539622a6a36397526bcd638ba" args="" -->APR_LOCK_SYSVSEM</em>&nbsp;</td><td>
System V Semaphores </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0eeb9be048b123bbc28ab63b6f97ecc4f1"></a><!-- doxytag: member="APR_LOCK_PROC_PTHREAD" ref="ggada99139636a0bedceec1c967068de0eeb9be048b123bbc28ab63b6f97ecc4f1" args="" -->APR_LOCK_PROC_PTHREAD</em>&nbsp;</td><td>
POSIX pthread process-based locking </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0ea1f79a9c4a072a0d702e35b94ffdc140"></a><!-- doxytag: member="APR_LOCK_POSIXSEM" ref="ggada99139636a0bedceec1c967068de0ea1f79a9c4a072a0d702e35b94ffdc140" args="" -->APR_LOCK_POSIXSEM</em>&nbsp;</td><td>
POSIX semaphore process-based locking </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggada99139636a0bedceec1c967068de0e89a14684624c826950febd5714904119"></a><!-- doxytag: member="APR_LOCK_DEFAULT" ref="ggada99139636a0bedceec1c967068de0e89a14684624c826950febd5714904119" args="" -->APR_LOCK_DEFAULT</em>&nbsp;</td><td>
Use the default process lock </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="g1aa4b0d989aa97baf6687d9bfcf838a0"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_child_init" ref="g1aa4b0d989aa97baf6687d9bfcf838a0" args="(apr_proc_mutex_t **mutex, const char *fname, apr_pool_t *pool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_child_init           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> **&nbsp;</td>
          <td class="paramname"> <em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pool</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Re-open a mutex in a child process. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>The newly re-opened mutex structure. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fname</em>&nbsp;</td><td>A file name to use if the mutex mechanism requires one. This argument should always be provided. The mutex code itself will determine if it should be used. This filename should be the same one that was passed to <a class="el" href="group__apr__proc__mutex.html#gc35185e42438155d136e86e81b603bfc">apr_proc_mutex_create()</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pool</em>&nbsp;</td><td>The pool to operate on. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Remarks:</b></dt><dd>This function must be called to maintain portability, even if the underlying lock mechanism does not require it. </dd></dl>

</div>
</div><p>
<a class="anchor" name="g593c756007c8030ab797b09458804d82"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_cleanup" ref="g593c756007c8030ab797b09458804d82" args="(void *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_cleanup           </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroy the mutex and free the memory associated with the lock. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the mutex to destroy. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>This function is generally used to kill a cleanup on an already created mutex </dd></dl>

</div>
</div><p>
<a class="anchor" name="gc35185e42438155d136e86e81b603bfc"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_create" ref="gc35185e42438155d136e86e81b603bfc" args="(apr_proc_mutex_t **mutex, const char *fname, apr_lockmech_e mech, apr_pool_t *pool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_create           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> **&nbsp;</td>
          <td class="paramname"> <em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#gada99139636a0bedceec1c967068de0e">apr_lockmech_e</a>&nbsp;</td>
          <td class="paramname"> <em>mech</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pool</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create and initialize a mutex that can be used to synchronize processes. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the memory address where the newly created mutex will be stored. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fname</em>&nbsp;</td><td>A file name to use if the lock mechanism requires one. This argument should always be provided. The lock code itself will determine if it should be used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mech</em>&nbsp;</td><td>The mechanism to use for the interprocess lock, if any; one of <pre>
            APR_LOCK_FCNTL
            APR_LOCK_FLOCK
            APR_LOCK_SYSVSEM
            APR_LOCK_POSIXSEM
            APR_LOCK_PROC_PTHREAD
            APR_LOCK_DEFAULT     pick the default mechanism for the platform
 </pre> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pool</em>&nbsp;</td><td>the pool from which to allocate the mutex. </td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__apr__proc__mutex.html#gada99139636a0bedceec1c967068de0e">apr_lockmech_e</a> </dd></dl>
<dl compact><dt><b>Warning:</b></dt><dd>Check APR_HAS_foo_SERIALIZE defines to see if the platform supports APR_LOCK_foo. Only APR_LOCK_DEFAULT is portable. </dd></dl>

</div>
</div><p>
<a class="anchor" name="g191506708f2168ee222b786ea3eb3f48"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_defname" ref="g191506708f2168ee222b786ea3eb3f48" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* apr_proc_mutex_defname           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Display the name of the default mutex: APR_LOCK_DEFAULT 
</div>
</div><p>
<a class="anchor" name="gbd72f5edd4411ebb26c516df186a32fa"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_destroy" ref="gbd72f5edd4411ebb26c516df186a32fa" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_destroy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroy the mutex and free the memory associated with the lock. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the mutex to destroy. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="g0ed839c024c3da10dd738bbd2fff9360"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_lock" ref="g0ed839c024c3da10dd738bbd2fff9360" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_lock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Acquire the lock for the given mutex. If the mutex is already locked, the current thread will be put to sleep until the lock becomes available. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the mutex on which to acquire the lock. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="g90c162d605dac04b4f7755f6b44608d6"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_lockfile" ref="g90c162d605dac04b4f7755f6b44608d6" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* apr_proc_mutex_lockfile           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the name of the lockfile for the mutex, or NULL if the mutex doesn't use a lock file 
</div>
</div><p>
<a class="anchor" name="gf095bb21ae224142b44560fb34949d42"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_name" ref="gf095bb21ae224142b44560fb34949d42" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* apr_proc_mutex_name           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Display the name of the mutex, as it relates to the actual method used. This matches the valid options for Apache's AcceptMutex directive <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the name of the mutex </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="g6529ce013ede69cc1587879051a504aa"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_pool_get" ref="g6529ce013ede69cc1587879051a504aa" args="(const apr_proc_mutex_t *theproc_mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__pools.html#g06f17a7732f2d04d8ce7010fbb057a8b">apr_pool_t</a>* apr_proc_mutex_pool_get           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>theproc_mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the pool used by this proc_mutex. <dl compact><dt><b>Returns:</b></dt><dd>apr_pool_t the pool </dd></dl>

</div>
</div><p>
<a class="anchor" name="g7272f3b8bdc57152eccbad25e2b74d23"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_trylock" ref="g7272f3b8bdc57152eccbad25e2b74d23" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_trylock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Attempt to acquire the lock for the given mutex. If the mutex has already been acquired, the call returns immediately with APR_EBUSY. Note: it is important that the <a class="el" href="group___a_p_r___s_t_a_t_u_s___i_s.html#g88ed418f02b78468b542932ed2cb2c29">APR_STATUS_IS_EBUSY(s)</a> macro be used to determine if the return value was APR_EBUSY, for portability reasons. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the mutex on which to attempt the lock acquiring. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="g25b91bde16ff68d311bc0bb01db7f37f"></a><!-- doxytag: member="apr_proc_mutex.h::apr_proc_mutex_unlock" ref="g25b91bde16ff68d311bc0bb01db7f37f" args="(apr_proc_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__apr__errno.html#g4cf2ddae3efce70c508ac7fefc1c47f7">apr_status_t</a> apr_proc_mutex_unlock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__apr__proc__mutex.html#g912817d4c3ea0c581c9049d4d9e58170">apr_proc_mutex_t</a> *&nbsp;</td>
          <td class="paramname"> <em>mutex</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Release the lock for the given mutex. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mutex</em>&nbsp;</td><td>the mutex from which to release the lock. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Tue May 31 12:43:39 2011 for Apache Portable Runtime by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>