Debian Codegraph @

docs/api_reference/C/mutex.html

raw symbols SCIP
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 xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Chapter 9. 
22 Mutex Methods
23 </th>
24 </tr>
25 <tr>
26 <td width="20%" align="left"><a accesskey="p" href="mempset_priority.html">Prev</a> </td>
27 <th width="60%" align="center"> </th>
28 <td width="20%" align="right"> <a accesskey="n" href="mutexalloc.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="chapter" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title"><a id="mutex"></a>Chapter 9. 
38 Mutex Methods
39 </h2>
40 </div>
41 </div>
42 </div>
43 <p>
44 This chapter describes methods that can be used to manage
45 mutexes within DB. Many of the methods described here
46 are used to configure DB's internal mutex system.
47 However, a series of APIs are available for use as a
48 general-purpose, cross platform mutex management system.
49 These methods can be used independently of DB's main
50 purpose, which is as a high-end data management engine.
51 </p>
52 <div class="sect1" lang="en" xml:lang="en">
53 <div class="titlepage">
54 <div>
55 <div>
56 <h2 class="title" style="clear: both"><a id="mutexlist"></a>Mutex Methods</h2>
57 </div>
58 </div>
59 </div>
60 <div class="navtable">
61 <table border="1" width="80%">
62 <thead>
63 <tr>
64 <th>Mutexes and Related Methods</th>
65 <th>Description</th>
66 </tr>
67 </thead>
68 <tbody>
69 <tr>
70 <td>
71 <a class="xref" href="mutexalloc.html" title="DB_ENV-&gt;mutex_alloc()">DB_ENV-&gt;mutex_alloc()</a>
72 </td>
73 <td>Allocate a mutex</td>
74 </tr>
75 <tr>
76 <td>
77 <a class="xref" href="mutexfree.html" title="DB_ENV-&gt;mutex_free()">DB_ENV-&gt;mutex_free()</a>
78 </td>
79 <td>Free a mutex</td>
80 </tr>
81 <tr>
82 <td>
83 <a class="xref" href="mutexlock.html" title="DB_ENV-&gt;mutex_lock()">DB_ENV-&gt;mutex_lock()</a>
84 </td>
85 <td>Lock a mutex</td>
86 </tr>
87 <tr>
88 <td>
89 <a class="xref" href="mutexstat.html" title="DB_ENV-&gt;mutex_stat()">DB_ENV-&gt;mutex_stat()</a>
90 </td>
91 <td>Mutex statistics</td>
92 </tr>
93 <tr>
94 <td>
95 <a class="xref" href="mutexstat_print.html" title="DB_ENV-&gt;mutex_stat_print()">DB_ENV-&gt;mutex_stat_print()</a>
96 </td>
97 <td>Print mutex statistics</td>
98 </tr>
99 <tr>
100 <td>
101 <a class="xref" href="mutexunlock.html" title="DB_ENV-&gt;mutex_unlock()">DB_ENV-&gt;mutex_unlock()</a>
102 </td>
103 <td>Unlock a mutex</td>
104 </tr>
105 <tr>
106 <td colspan="2">
107 <span class="bold">
108 <strong>Mutex Configuration</strong>
109 </span>
110 </td>
111 </tr>
112 <tr>
113 <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>
114 <td>Configure mutex alignment</td>
115 </tr>
116 <tr>
117 <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>
118 <td>Configure number of additional mutexes</td>
119 </tr>
120 <tr>
121 <td><a class="xref" href="mutexset_init.html" title="DB_ENV-&gt;mutex_set_init()">DB_ENV-&gt;mutex_set_init()</a>, <a class="xref" href="mutexget_init.html" title="DB_ENV-&gt;mutex_get_init()">DB_ENV-&gt;mutex_get_init()</a></td>
122 <td>Configure initial number of mutexes</td>
123 </tr>
124 <tr>
125 <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>
126 <td>Configure total number of mutexes</td>
127 </tr>
128 <tr>
129 <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>
130 <td>Configure test-and-set mutex spin count</td>
131 </tr>
132 </tbody>
133 </table>
134 </div>
135 </div>
136 </div>
137 <div class="navfooter">
138 <hr />
139 <table width="100%" summary="Navigation footer">
140 <tr>
141 <td width="40%" align="left"><a accesskey="p" href="mempset_priority.html">Prev</a> </td>
142 <td width="20%" align="center"> </td>
143 <td width="40%" align="right"> <a accesskey="n" href="mutexalloc.html">Next</a></td>
144 </tr>
145 <tr>
146 <td width="40%" align="left" valign="top">DB_MPOOLFILE-&gt;set_priority() </td>
147 <td width="20%" align="center">
148 <a accesskey="h" href="index.html">Home</a>
149 </td>
150 <td width="40%" align="right" valign="top"> DB_ENV-&gt;mutex_alloc()</td>
151 </tr>
152 </table>
153 </div>
154 </body>
155 </html>