Debian Codegraph @

docs/api_reference/CXX/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>DbEnv::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 10.  Mutex Methods" />
11 <link rel="prev" href="mutexset_align.html" title="DbEnv::mutex_set_align()" />
12 <link rel="next" href="mutexset_init.html" title="DbEnv::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">DbEnv::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 10. 
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>DbEnv::mutex_set_increment()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::mutex_set_increment(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">DbEnv::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">DbEnv::mutex_set_increment()</code> method discards any value
55 previously set using the <a class="xref" href="mutexset_max.html" title="DbEnv::mutex_set_max()">DbEnv::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">DbEnv::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 DbEnv Handle">DbEnv</a> handle.
70 </p>
71 <p>
72 The <code class="methodname">DbEnv::mutex_set_increment()</code> method may not be called after the
73 <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> method is
74 called. If the database environment already exists when
75 <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> is called, the
76 information specified to <code class="methodname">DbEnv::mutex_set_increment()</code> will be
77 ignored.
78 </p>
79 <p>
80 The <code class="methodname">DbEnv::mutex_set_increment()</code> <span>
81
82 <span>
83 method either returns a non-zero error value or throws an
84 exception that encapsulates a non-zero error value on
85 failure, and returns 0 on success.
86 </span>
87 </span>
88 </p>
89 <div class="sect2" lang="en" xml:lang="en">
90 <div class="titlepage">
91 <div>
92 <div>
93 <h3 class="title"><a id="idp9214576"></a>Parameters</h3>
94 </div>
95 </div>
96 </div>
97 <div class="sect3" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h4 class="title"><a id="idp9213928"></a>increment</h4>
102 </div>
103 </div>
104 </div>
105 <p>
106 The <span class="bold"><strong>increment</strong></span> parameter is the number
107 of additional mutexes to allocate.
108 </p>
109 </div>
110 </div>
111 <div class="sect2" lang="en" xml:lang="en">
112 <div class="titlepage">
113 <div>
114 <div>
115 <h3 class="title"><a id="idp9203048"></a>Errors</h3>
116 </div>
117 </div>
118 </div>
119 <p>
120 The <code class="methodname">DbEnv::mutex_set_increment()</code> <span>
121
122 <span>
123 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
124 exception, encapsulating one of the following non-zero errors, or return one
125 of the following non-zero errors:
126 </span>
127 </span>
128 </p>
129 <div class="sect3" lang="en" xml:lang="en">
130 <div class="titlepage">
131 <div>
132 <div>
133 <h4 class="title"><a id="idp9223872"></a>EINVAL</h4>
134 </div>
135 </div>
136 </div>
137 <p>
138 If the method was called after <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a>
139 was called; or if an invalid flag value or parameter was specified.
140 </p>
141 </div>
142 </div>
143 <div class="sect2" lang="en" xml:lang="en">
144 <div class="titlepage">
145 <div>
146 <div>
147 <h3 class="title"><a id="idp9225200"></a>Class</h3>
148 </div>
149 </div>
150 </div>
151 <p>
152 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
153 </p>
154 </div>
155 <div class="sect2" lang="en" xml:lang="en">
156 <div class="titlepage">
157 <div>
158 <div>
159 <h3 class="title"><a id="idp9215440"></a>See Also</h3>
160 </div>
161 </div>
162 </div>
163 <p>
164 <a class="xref" href="mutex.html#mutexlist" title="Mutex Methods">Mutex Methods</a>
165 </p>
166 </div>
167 </div>
168 <div class="navfooter">
169 <hr />
170 <table width="100%" summary="Navigation footer">
171 <tr>
172 <td width="40%" align="left"><a accesskey="p" href="mutexset_align.html">Prev</a> </td>
173 <td width="20%" align="center">
174 <a accesskey="u" href="mutex.html">Up</a>
175 </td>
176 <td width="40%" align="right"> <a accesskey="n" href="mutexset_init.html">Next</a></td>
177 </tr>
178 <tr>
179 <td width="40%" align="left" valign="top">DbEnv::mutex_set_align() </td>
180 <td width="20%" align="center">
181 <a accesskey="h" href="index.html">Home</a>
182 </td>
183 <td width="40%" align="right" valign="top"> DbEnv::mutex_set_init()</td>
184 </tr>
185 </table>
186 </div>
187 </body>
188 </html>