Debian Codegraph @

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