Debian Codegraph @

docs/api_reference/C/mutexset_increment.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>DB_ENV-&gt;mutex_set_increment()</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="mutex.html" title="Chapter 9.  Mutex Methods" />
11 <link rel="prev" href="mutexset_align.html" title="DB_ENV-&gt;mutex_set_align()" />
12 <link rel="next" href="mutexset_init.html" title="DB_ENV-&gt;mutex_set_init()" />
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">DB_ENV-&gt;mutex_set_increment()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mutexset_align.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 Mutex Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="mutexset_init.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="mutexset_increment"></a>DB_ENV-&gt;mutex_set_increment()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;mutex_set_increment(DB_ENV *dbenv, u_int32_t increment); </pre>
45 <p>
46 Configure the number of additional mutexes to allocate.
47 </p>
48 <p>
49 If an application will allocate mutexes for its own use,
50 the <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> method is used to add a
51 number of mutexes to the default allocation.
52 </p>
53 <p>
54 Calling the <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> method discards any value
55 previously set using the <a class="xref" href="mutexset_max.html" title="DB_ENV-&gt;mutex_set_max()">DB_ENV-&gt;mutex_set_max()</a> method.
56 </p>
57 <p>
58 The database environment's number of additional mutexes may also be
59 configured using the environment's <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file. The
60 syntax of the entry in that file is a single line with the string
61 "mutex_set_increment", one or more whitespace characters, and the
62 number of additional mutexes. Because the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is
63 read when the database environment is opened, it will silently
64 overrule configuration done before that time.
65 </p>
66 <p>
67 The <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> method configures a database
68 environment, not only operations performed using the specified
69 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a> handle.
70 </p>
71 <p>
72 The <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> method may not be called after the
73 <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a> method is
74 called. If the database environment already exists when
75 <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a> is called, the
76 information specified to <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> will be
77 ignored.
78 </p>
79 <p>
80 The <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> <span>
81 <span>
82 method returns a non-zero error value on failure and 0 on success.
83 </span>
84
85 </span>
86 </p>
87 <div class="sect2" lang="en" xml:lang="en">
88 <div class="titlepage">
89 <div>
90 <div>
91 <h3 class="title"><a id="idp53732312"></a>Parameters</h3>
92 </div>
93 </div>
94 </div>
95 <div class="sect3" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h4 class="title"><a id="idp53749408"></a>increment</h4>
100 </div>
101 </div>
102 </div>
103 <p>
104 The <span class="bold"><strong>increment</strong></span> parameter is the number
105 of additional mutexes to allocate.
106 </p>
107 </div>
108 </div>
109 <div class="sect2" lang="en" xml:lang="en">
110 <div class="titlepage">
111 <div>
112 <div>
113 <h3 class="title"><a id="idp53745040"></a>Errors</h3>
114 </div>
115 </div>
116 </div>
117 <p>
118 The <code class="methodname">DB_ENV-&gt;mutex_set_increment()</code> <span>
119 <span>
120 method may fail and return one of the following non-zero errors:
121 </span>
122
123 </span>
124 </p>
125 <div class="sect3" lang="en" xml:lang="en">
126 <div class="titlepage">
127 <div>
128 <div>
129 <h4 class="title"><a id="idp53757600"></a>EINVAL</h4>
130 </div>
131 </div>
132 </div>
133 <p>
134 If the method was called after <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a>
135 was called; or if an invalid flag value or parameter was specified.
136 </p>
137 </div>
138 </div>
139 <div class="sect2" lang="en" xml:lang="en">
140 <div class="titlepage">
141 <div>
142 <div>
143 <h3 class="title"><a id="idp53756520"></a>Class</h3>
144 </div>
145 </div>
146 </div>
147 <p>
148 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
149 </p>
150 </div>
151 <div class="sect2" lang="en" xml:lang="en">
152 <div class="titlepage">
153 <div>
154 <div>
155 <h3 class="title"><a id="idp53759728"></a>See Also</h3>
156 </div>
157 </div>
158 </div>
159 <p>
160 <a class="xref" href="mutex.html#mutexlist" title="Mutex Methods">Mutex Methods</a>
161 </p>
162 </div>
163 </div>
164 <div class="navfooter">
165 <hr />
166 <table width="100%" summary="Navigation footer">
167 <tr>
168 <td width="40%" align="left"><a accesskey="p" href="mutexset_align.html">Prev</a> </td>
169 <td width="20%" align="center">
170 <a accesskey="u" href="mutex.html">Up</a>
171 </td>
172 <td width="40%" align="right"> <a accesskey="n" href="mutexset_init.html">Next</a></td>
173 </tr>
174 <tr>
175 <td width="40%" align="left" valign="top">DB_ENV-&gt;mutex_set_align() </td>
176 <td width="20%" align="center">
177 <a accesskey="h" href="index.html">Home</a>
178 </td>
179 <td width="40%" align="right" valign="top"> DB_ENV-&gt;mutex_set_init()</td>
180 </tr>
181 </table>
182 </div>
183 </body>
184 </html>