• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/api_reference/C/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>Chapter��9.�� Mutex Methods</title>
7    <link rel="stylesheet" href="apiReference.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10    <link rel="up" href="index.html" title="Berkeley DB C API Reference" />
11    <link rel="prev" href="mempset_priority.html" title="DB_MPOOLFILE-&gt;set_priority()" />
12    <link rel="next" href="mutexalloc.html" title="DB_ENV-&gt;mutex_alloc()" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Chapter��9.��
19                Mutex Methods 
20        </th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="mempset_priority.html">Prev</a>��</td>
24          <th width="60%" align="center">��</th>
25          <td width="20%" align="right">��<a accesskey="n" href="mutexalloc.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="chapter" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title"><a id="mutex"></a>Chapter��9.��
35                Mutex Methods 
36        </h2>
37          </div>
38        </div>
39      </div>
40      <p>
41                This chapter describes methods that can be used to manage
42                mutexes within DB. Many of the methods described here
43                are used to configure DB's internal mutex system.
44                However, a series of APIs are available for use as a
45                general-purpose, cross platform mutex management system.
46                These methods can be used independently of DB's main
47                purpose, which is as a high-end data management engine.
48        </p>
49      <div class="sect1" lang="en" xml:lang="en">
50        <div class="titlepage">
51          <div>
52            <div>
53              <h2 class="title" style="clear: both"><a id="mutexlist"></a>Mutex Methods</h2>
54            </div>
55          </div>
56        </div>
57        <div class="navtable">
58          <table border="1" width="80%">
59            <thead>
60              <tr>
61                <th>Mutexes and Related Methods</th>
62                <th>Description</th>
63              </tr>
64            </thead>
65            <tbody>
66              <tr>
67                <td>
68                  <a class="xref" href="mutexalloc.html" title="DB_ENV-&gt;mutex_alloc()">DB_ENV-&gt;mutex_alloc()</a>
69                </td>
70                <td>Allocate a mutex</td>
71              </tr>
72              <tr>
73                <td>
74                  <a class="xref" href="mutexfree.html" title="DB_ENV-&gt;mutex_free()">DB_ENV-&gt;mutex_free()</a>
75                </td>
76                <td>Free a mutex</td>
77              </tr>
78              <tr>
79                <td>
80                  <a class="xref" href="mutexlock.html" title="DB_ENV-&gt;mutex_lock()">DB_ENV-&gt;mutex_lock()</a>
81                </td>
82                <td>Lock a mutex</td>
83              </tr>
84              <tr>
85                <td>
86                  <a class="xref" href="mutexstat.html" title="DB_ENV-&gt;mutex_stat()">DB_ENV-&gt;mutex_stat()</a>
87                </td>
88                <td>Mutex statistics</td>
89              </tr>
90              <tr>
91                <td>
92                  <a class="xref" href="mutexstat_print.html" title="DB_ENV-&gt;mutex_stat_print()">DB_ENV-&gt;mutex_stat_print()</a>
93                </td>
94                <td>Print mutex statistics</td>
95              </tr>
96              <tr>
97                <td>
98                  <a class="xref" href="mutexunlock.html" title="DB_ENV-&gt;mutex_unlock()">DB_ENV-&gt;mutex_unlock()</a>
99                </td>
100                <td>Unlock a mutex</td>
101              </tr>
102              <tr>
103                <td colspan="2">
104                  <span class="bold">
105                    <strong>Mutex Configuration</strong>
106                  </span>
107                </td>
108              </tr>
109              <tr>
110                <td><a class="xref" href="mutexset_align.html" title="DB_ENV-&gt;mutex_set_align()">DB_ENV-&gt;mutex_set_align()</a>, <a class="xref" href="mutexget_align.html" title="DB_ENV-&gt;mutex_get_align()">DB_ENV-&gt;mutex_get_align()</a></td>
111                <td>Configure mutex alignment</td>
112              </tr>
113              <tr>
114                <td><a class="xref" href="mutexset_increment.html" title="DB_ENV-&gt;mutex_set_increment()">DB_ENV-&gt;mutex_set_increment()</a>, <a class="xref" href="mutexget_increment.html" title="DB_ENV-&gt;mutex_get_increment()">DB_ENV-&gt;mutex_get_increment()</a></td>
115                <td>Configure number of additional mutexes</td>
116              </tr>
117              <tr>
118                <td><a class="xref" href="mutexset_max.html" title="DB_ENV-&gt;mutex_set_max()">DB_ENV-&gt;mutex_set_max()</a>, <a class="xref" href="mutexget_max.html" title="DB_ENV-&gt;mutex_get_max()">DB_ENV-&gt;mutex_get_max()</a></td>
119                <td>Configure total number of mutexes</td>
120              </tr>
121              <tr>
122                <td><a class="xref" href="mutexset_tas_spins.html" title="DB_ENV-&gt;mutex_set_tas_spins()">DB_ENV-&gt;mutex_set_tas_spins()</a>, <a class="xref" href="mutexget_tas_spins.html" title="DB_ENV-&gt;mutex_get_tas_spins()">DB_ENV-&gt;mutex_get_tas_spins()</a></td>
123                <td>Configure test-and-set mutex spin count</td>
124              </tr>
125            </tbody>
126          </table>
127        </div>
128      </div>
129    </div>
130    <div class="navfooter">
131      <hr />
132      <table width="100%" summary="Navigation footer">
133        <tr>
134          <td width="40%" align="left"><a accesskey="p" href="mempset_priority.html">Prev</a>��</td>
135          <td width="20%" align="center">��</td>
136          <td width="40%" align="right">��<a accesskey="n" href="mutexalloc.html">Next</a></td>
137        </tr>
138        <tr>
139          <td width="40%" align="left" valign="top">DB_MPOOLFILE-&gt;set_priority()��</td>
140          <td width="20%" align="center">
141            <a accesskey="h" href="index.html">Home</a>
142          </td>
143          <td width="40%" align="right" valign="top">��DB_ENV-&gt;mutex_alloc()</td>
144        </tr>
145      </table>
146    </div>
147  </body>
148</html>
149