Debian Codegraph @

docs/api_reference/CXX/envset_lk_priority.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::set_lk_priority()</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="lock.html" title="Chapter 7.  The DbLock Handle" />
11 <link rel="prev" href="envset_lk_partitions.html" title="DbEnv::set_lk_partitions()" />
12 <link rel="next" href="envset_lk_tablesize.html" title="DbEnv::set_lk_tablesize()" />
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::set_lk_priority()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envset_lk_partitions.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 7. 
26 The DbLock Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envset_lk_tablesize.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="envset_lk_priority"></a>DbEnv::set_lk_priority()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::set_lk_priority(u_int32_t u_int32_t lockerid, u_int32_t priority); </pre>
45 <p>
46 Set the priority of the given locker. This value is used when
47 resolving deadlocks, the deadlock resolution algorithm will reject
48 a lock request from a locker with a lower priority before a request
49 from a locker with a higher priority.
50 </p>
51 <p>
52 By default, all lockers are created with a priority of 100.
53 </p>
54 <p>
55 The <code class="methodname">DbEnv::set_lk_priority()</code> method may be
56 called at any time during the life of the application.
57 </p>
58 <p>
59 The <code class="methodname">DbEnv::set_lk_priority()</code> <span>
60
61 <span>
62 method either returns a non-zero error value or throws an
63 exception that encapsulates a non-zero error value on
64 failure, and returns 0 on success.
65 </span>
66 </span>
67 </p>
68 <div class="sect2" lang="en" xml:lang="en">
69 <div class="titlepage">
70 <div>
71 <div>
72 <h3 class="title"><a id="idp8006856"></a>Parameters</h3>
73 </div>
74 </div>
75 </div>
76 <div class="sect3" lang="en" xml:lang="en">
77 <div class="titlepage">
78 <div>
79 <div>
80 <h4 class="title"><a id="idp8006208"></a>lockerid</h4>
81 </div>
82 </div>
83 </div>
84 <p>
85 The <span class="bold"><strong>lockerid</strong></span> parameter
86 represents a locker returned by
87 <code class="methodname">DbEnv::lock_id()</code>.
88 </p>
89 </div>
90 <div class="sect3" lang="en" xml:lang="en">
91 <div class="titlepage">
92 <div>
93 <div>
94 <h4 class="title"><a id="idp8002400"></a>priority</h4>
95 </div>
96 </div>
97 </div>
98 <p>
99 The <span class="bold"><strong>priority</strong></span> parameter
100 must be a value between 0 and 2^32-1.
101 </p>
102 </div>
103 </div>
104 <div class="sect2" lang="en" xml:lang="en">
105 <div class="titlepage">
106 <div>
107 <div>
108 <h3 class="title"><a id="idp7995640"></a>Errors</h3>
109 </div>
110 </div>
111 </div>
112 <p>
113 The <code class="methodname">DbEnv::set_lk_priority()</code> <span>
114
115 <span>
116 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
117 exception, encapsulating one of the following non-zero errors, or return one
118 of the following non-zero errors:
119 </span>
120 </span>
121 </p>
122 <div class="sect3" lang="en" xml:lang="en">
123 <div class="titlepage">
124 <div>
125 <div>
126 <h4 class="title"><a id="idp8013496"></a>EINVAL</h4>
127 </div>
128 </div>
129 </div>
130 <p>
131 An invalid flag value or parameter was specified.
132 </p>
133 </div>
134 </div>
135 <div class="sect2" lang="en" xml:lang="en">
136 <div class="titlepage">
137 <div>
138 <div>
139 <h3 class="title"><a id="idp8011520"></a>Class</h3>
140 </div>
141 </div>
142 </div>
143 <p>
144 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>,
145 <a class="link" href="lock.html" title="Chapter 7.  The DbLock Handle">DbLock</a>
146 </p>
147 </div>
148 <div class="sect2" lang="en" xml:lang="en">
149 <div class="titlepage">
150 <div>
151 <div>
152 <h3 class="title"><a id="idp7998112"></a>See Also</h3>
153 </div>
154 </div>
155 </div>
156 <p>
157 <a class="xref" href="lock.html#locklist" title="Locking Subsystem and Related Methods">Locking Subsystem and Related Methods</a>
158 </p>
159 </div>
160 </div>
161 <div class="navfooter">
162 <hr />
163 <table width="100%" summary="Navigation footer">
164 <tr>
165 <td width="40%" align="left"><a accesskey="p" href="envset_lk_partitions.html">Prev</a> </td>
166 <td width="20%" align="center">
167 <a accesskey="u" href="lock.html">Up</a>
168 </td>
169 <td width="40%" align="right"> <a accesskey="n" href="envset_lk_tablesize.html">Next</a></td>
170 </tr>
171 <tr>
172 <td width="40%" align="left" valign="top">DbEnv::set_lk_partitions() </td>
173 <td width="20%" align="center">
174 <a accesskey="h" href="index.html">Home</a>
175 </td>
176 <td width="40%" align="right" valign="top"> DbEnv::set_lk_tablesize()</td>
177 </tr>
178 </table>
179 </div>
180 </body>
181 </html>