⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__apr__file__lock__types.html

📁 apr函数库使用手册
💻 HTML
字号:
<!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: File Lock Types</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>File Lock Types<br>
<small>
[<a class="el" href="group__apr__file__io.html">File I/O Handling Functions</a>]</small>
</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__file__lock__types.html#ga0">APR_FLOCK_SHARED</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__file__lock__types.html#ga1">APR_FLOCK_EXCLUSIVE</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__file__lock__types.html#ga2">APR_FLOCK_TYPEMASK</a>&nbsp;&nbsp;&nbsp;0x000F  /**&lt; mask to extract lock type */</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__file__lock__types.html#ga3">APR_FLOCK_NONBLOCK</a></td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="ga1" doxytag="apr_file_io.h::APR_FLOCK_EXCLUSIVE" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define APR_FLOCK_EXCLUSIVE          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><pre class="fragment"><div>2       <span class="comment">/**&lt; Exclusive lock. Only one process</span>
<span class="comment">                                           may hold an exclusive lock at any</span>
<span class="comment">                                           given time. This is analogous to</span>
<span class="comment">                                           a "write lock". */</span>
</div></pre>Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".     </td>
  </tr>
</table>
<a class="anchor" name="ga3" doxytag="apr_file_io.h::APR_FLOCK_NONBLOCK" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define APR_FLOCK_NONBLOCK          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><pre class="fragment"><div>0x0010  <span class="comment">/**&lt; do not block while acquiring the</span>
<span class="comment">                                           file lock */</span>
</div></pre>do not block while acquiring the file lock     </td>
  </tr>
</table>
<a class="anchor" name="ga0" doxytag="apr_file_io.h::APR_FLOCK_SHARED" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define APR_FLOCK_SHARED          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Value:</b><pre class="fragment"><div>1       <span class="comment">/**&lt; Shared lock. More than one process</span>
<span class="comment">                                           or thread can hold a shared lock</span>
<span class="comment">                                           at any given time. Essentially,</span>
<span class="comment">                                           this is a "read lock", preventing</span>
<span class="comment">                                           writers from establishing an</span>
<span class="comment">                                           exclusive lock. */</span>
</div></pre>Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.     </td>
  </tr>
</table>
<a class="anchor" name="ga2" doxytag="apr_file_io.h::APR_FLOCK_TYPEMASK" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define APR_FLOCK_TYPEMASK&nbsp;&nbsp;&nbsp;0x000F  /**&lt; mask to extract lock type */          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
mask to extract lock type     </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 7 13:18:25 2005 for Apache Portable Runtime by
<a href="../../../www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -