Debian Codegraph @

docs/api_reference/CXX/envget_lk_detect.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::get_lk_detect()</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="envget_lk_conflicts.html" title="DbEnv::get_lk_conflicts()" />
12 <link rel="next" href="envget_lk_max_lockers.html" title="DbEnv::get_lk_max_lockers()" />
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::get_lk_detect()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envget_lk_conflicts.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="envget_lk_max_lockers.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="envget_lk_detect"></a>DbEnv::get_lk_detect()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::get_lk_detect(u_int32_t *lk_detectp);</pre>
45 <p>
46 The <code class="methodname">DbEnv::get_lk_detect()</code> method returns the deadlock detector
47 configuration. You can manage this using the
48 <a class="xref" href="envset_lk_detect.html" title="DbEnv::set_lk_detect()">DbEnv::set_lk_detect()</a> method.
49 </p>
50 <p>
51 The <code class="methodname">DbEnv::get_lk_detect()</code> method may be called at any time during
52 the life of the application.
53 </p>
54 <p>
55 The <code class="methodname">DbEnv::get_lk_detect()</code> <span>
56
57 <span>
58 method either returns a non-zero error value or throws an
59 exception that encapsulates a non-zero error value on
60 failure, and returns 0 on success.
61 </span>
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp7831312"></a>Parameters</h3>
69 </div>
70 </div>
71 </div>
72 <div class="sect3" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h4 class="title"><a id="idp7830664"></a>lk_detectp</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 The <code class="methodname">DbEnv::get_lk_detect()</code> method returns the deadlock detector
82 configuration in <span class="bold"><strong>lk_detectp</strong></span>.
83 </p>
84 </div>
85 </div>
86 <div class="sect2" lang="en" xml:lang="en">
87 <div class="titlepage">
88 <div>
89 <div>
90 <h3 class="title"><a id="idp7823848"></a>Errors</h3>
91 </div>
92 </div>
93 </div>
94 <p>
95 The <code class="methodname">DbEnv::get_lk_detect()</code> <span>
96
97 <span>
98 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
99 exception, encapsulating one of the following non-zero errors, or return one
100 of the following non-zero errors:
101 </span>
102 </span>
103 </p>
104 <div class="sect3" lang="en" xml:lang="en">
105 <div class="titlepage">
106 <div>
107 <div>
108 <h4 class="title"><a id="idp7838272"></a>EINVAL</h4>
109 </div>
110 </div>
111 </div>
112 <p>
113 The method was called on an environment which had been
114 opened without being configured for locking.
115 </p>
116 </div>
117 </div>
118 <div class="sect2" lang="en" xml:lang="en">
119 <div class="titlepage">
120 <div>
121 <div>
122 <h3 class="title"><a id="idp7837192"></a>Class</h3>
123 </div>
124 </div>
125 </div>
126 <p>
127 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>,
128 <a class="link" href="lock.html" title="Chapter 7.  The DbLock Handle">DbLock</a>
129 </p>
130 </div>
131 <div class="sect2" lang="en" xml:lang="en">
132 <div class="titlepage">
133 <div>
134 <div>
135 <h3 class="title"><a id="idp7822456"></a>See Also</h3>
136 </div>
137 </div>
138 </div>
139 <p>
140 <a class="xref" href="lock.html#locklist" title="Locking Subsystem and Related Methods">Locking Subsystem and Related Methods</a>,
141 <a class="xref" href="envset_lk_detect.html" title="DbEnv::set_lk_detect()">DbEnv::set_lk_detect()</a>
142 </p>
143 </div>
144 </div>
145 <div class="navfooter">
146 <hr />
147 <table width="100%" summary="Navigation footer">
148 <tr>
149 <td width="40%" align="left"><a accesskey="p" href="envget_lk_conflicts.html">Prev</a> </td>
150 <td width="20%" align="center">
151 <a accesskey="u" href="lock.html">Up</a>
152 </td>
153 <td width="40%" align="right"> <a accesskey="n" href="envget_lk_max_lockers.html">Next</a></td>
154 </tr>
155 <tr>
156 <td width="40%" align="left" valign="top">DbEnv::get_lk_conflicts() </td>
157 <td width="20%" align="center">
158 <a accesskey="h" href="index.html">Home</a>
159 </td>
160 <td width="40%" align="right" valign="top"> DbEnv::get_lk_max_lockers()</td>
161 </tr>
162 </table>
163 </div>
164 </body>
165 </html>