Debian Codegraph @

docs/api_reference/C/lock.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>Chapter 6.  The DB_LOCK Handle</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="index.html" title="Berkeley DB C API Reference" />
11 <link rel="prev" href="envversion.html" title="db_version" />
12 <link rel="next" href="envget_lk_conflicts.html" title="DB_ENV-&gt;get_lk_conflicts()" />
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">Chapter 6. 
22 The DB_LOCK Handle
23 </th>
24 </tr>
25 <tr>
26 <td width="20%" align="left"><a accesskey="p" href="envversion.html">Prev</a> </td>
27 <th width="60%" align="center"> </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envget_lk_conflicts.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="chapter" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title"><a id="lock"></a>Chapter 6. 
38 The DB_LOCK Handle
39 </h2>
40 </div>
41 </div>
42 </div>
43 <pre class="programlisting">#include &lt;db.h&gt;
44
45 typedef struct __db_lock_u DB_LOCK; </pre>
46 <p>
47 The locking interfaces for the Berkeley DB database environment
48 are methods of the <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
49 handle. The <code class="classname">DB_LOCK</code> object is
50 the handle for a single lock, and has no methods of its own.
51 </p>
52 <div class="sect1" lang="en" xml:lang="en">
53 <div class="titlepage">
54 <div>
55 <div>
56 <h2 class="title" style="clear: both"><a id="locklist"></a>Locking Subsystem and Related Methods</h2>
57 </div>
58 </div>
59 </div>
60 <div class="navtable">
61 <table border="1" width="80%">
62 <thead>
63 <tr>
64 <th>Locking Subsystem and Related Methods</th>
65 <th>Description</th>
66 </tr>
67 </thead>
68 <tbody>
69 <tr>
70 <td>
71 <a class="xref" href="lockdetect.html" title="DB_ENV-&gt;lock_detect()">DB_ENV-&gt;lock_detect()</a>
72 </td>
73 <td>Perform deadlock detection</td>
74 </tr>
75 <tr>
76 <td>
77 <a class="xref" href="lockget.html" title="DB_ENV-&gt;lock_get()">DB_ENV-&gt;lock_get()</a>
78 </td>
79 <td>Acquire a lock</td>
80 </tr>
81 <tr>
82 <td>
83 <a class="xref" href="lockid.html" title="DB_ENV-&gt;lock_id()">DB_ENV-&gt;lock_id()</a>
84 </td>
85 <td>Acquire a locker ID</td>
86 </tr>
87 <tr>
88 <td>
89 <a class="xref" href="lockid_free.html" title="DB_ENV-&gt;lock_id_free()">DB_ENV-&gt;lock_id_free()</a>
90 </td>
91 <td>Release a locker ID</td>
92 </tr>
93 <tr>
94 <td>
95 <a class="xref" href="lockput.html" title="DB_ENV-&gt;lock_put()">DB_ENV-&gt;lock_put()</a>
96 </td>
97 <td>Release a lock</td>
98 </tr>
99 <tr>
100 <td>
101 <a class="xref" href="lockstat.html" title="DB_ENV-&gt;lock_stat()">DB_ENV-&gt;lock_stat()</a>
102 </td>
103 <td>Return lock subsystem statistics</td>
104 </tr>
105 <tr>
106 <td>
107 <a class="xref" href="lockstat_print.html" title="DB_ENV-&gt;lock_stat_print()">DB_ENV-&gt;lock_stat_print()</a>
108 </td>
109 <td>Print lock subsystem statistics</td>
110 </tr>
111 <tr>
112 <td>
113 <a class="xref" href="lockvec.html" title="DB_ENV-&gt;lock_vec()">DB_ENV-&gt;lock_vec()</a>
114 </td>
115 <td>Acquire/release locks</td>
116 </tr>
117 <tr>
118 <td>
119 <a class="xref" href="envcdsgroup_begin.html" title="DB_ENV-&gt;cdsgroup_begin()">DB_ENV-&gt;cdsgroup_begin()</a>
120 </td>
121 <td>Get a locker ID in Berkeley DB Concurrent Data Store</td>
122 </tr>
123 <tr>
124 <td colspan="2">
125 <span class="bold">
126 <strong>Locking Subsystem Configuration</strong>
127 </span>
128 </td>
129 </tr>
130 <tr>
131 <td><a class="xref" href="envset_timeout.html" title="DB_ENV-&gt;set_timeout()">DB_ENV-&gt;set_timeout()</a>, <a class="xref" href="envget_timeout.html" title="DB_ENV-&gt;get_timeout()">DB_ENV-&gt;get_timeout()</a></td>
132 <td>Set/get lock and transaction timeout</td>
133 </tr>
134 <tr>
135 <td><a class="xref" href="envset_lk_conflicts.html" title="DB_ENV-&gt;set_lk_conflicts()">DB_ENV-&gt;set_lk_conflicts()</a>, <a class="xref" href="envget_lk_conflicts.html" title="DB_ENV-&gt;get_lk_conflicts()">DB_ENV-&gt;get_lk_conflicts()</a></td>
136 <td>Set/get lock conflicts matrix</td>
137 </tr>
138 <tr>
139 <td><a class="xref" href="envset_lk_detect.html" title="DB_ENV-&gt;set_lk_detect()">DB_ENV-&gt;set_lk_detect()</a>, <a class="xref" href="envget_lk_detect.html" title="DB_ENV-&gt;get_lk_detect()">DB_ENV-&gt;get_lk_detect()</a></td>
140 <td>Set/get automatic deadlock detection</td>
141 </tr>
142 <tr>
143 <td><a class="xref" href="envset_lk_max_lockers.html" title="DB_ENV-&gt;set_lk_max_lockers()">DB_ENV-&gt;set_lk_max_lockers()</a>, <a class="xref" href="envget_lk_max_lockers.html" title="DB_ENV-&gt;get_lk_max_lockers()">DB_ENV-&gt;get_lk_max_lockers()</a></td>
144 <td>Set/get maximum number of lockers</td>
145 </tr>
146 <tr>
147 <td><a class="xref" href="envset_lk_max_locks.html" title="DB_ENV-&gt;set_lk_max_locks()">DB_ENV-&gt;set_lk_max_locks()</a>, <a class="xref" href="envget_lk_max_locks.html" title="DB_ENV-&gt;get_lk_max_locks()">DB_ENV-&gt;get_lk_max_locks()</a></td>
148 <td>Set/get maximum number of locks</td>
149 </tr>
150 <tr>
151 <td><a class="xref" href="envset_lk_max_objects.html" title="DB_ENV-&gt;set_lk_max_objects()">DB_ENV-&gt;set_lk_max_objects()</a>, <a class="xref" href="envget_lk_max_objects.html" title="DB_ENV-&gt;get_lk_max_objects()">DB_ENV-&gt;get_lk_max_objects()</a></td>
152 <td>Set/get maximum number of lock objects</td>
153 </tr>
154 <tr>
155 <td><a class="xref" href="envset_lk_partitions.html" title="DB_ENV-&gt;set_lk_partitions()">DB_ENV-&gt;set_lk_partitions()</a>, <a class="xref" href="envget_lk_partitions.html" title="DB_ENV-&gt;get_lk_partitions()">DB_ENV-&gt;get_lk_partitions()</a></td>
156 <td>Set/get number of lock partitions</td>
157 </tr>
158 <tr>
159 <td><a class="xref" href="envset_lk_priority.html" title="DB_ENV-&gt;set_lk_priority()">DB_ENV-&gt;set_lk_priority()</a>, <a class="xref" href="envget_lk_priority.html" title="DB_ENV-&gt;get_lk_priority()">DB_ENV-&gt;get_lk_priority()</a></td>
160 <td>Set/get a locker's deadlock priority</td>
161 </tr>
162 <tr>
163 <td><a class="xref" href="envset_lk_tablesize.html" title="DB_ENV-&gt;set_lk_tablesize()">DB_ENV-&gt;set_lk_tablesize()</a>, <a class="xref" href="envget_lk_tablesize.html" title="DB_ENV-&gt;get_lk_tablesize()">DB_ENV-&gt;get_lk_tablesize()</a></td>
164 <td>Set/get size of the lock object hash table</td>
165 </tr>
166 </tbody>
167 </table>
168 </div>
169 </div>
170 </div>
171 <div class="navfooter">
172 <hr />
173 <table width="100%" summary="Navigation footer">
174 <tr>
175 <td width="40%" align="left"><a accesskey="p" href="envversion.html">Prev</a> </td>
176 <td width="20%" align="center"> </td>
177 <td width="40%" align="right"> <a accesskey="n" href="envget_lk_conflicts.html">Next</a></td>
178 </tr>
179 <tr>
180 <td width="40%" align="left" valign="top">db_version </td>
181 <td width="20%" align="center">
182 <a accesskey="h" href="index.html">Home</a>
183 </td>
184 <td width="40%" align="right" valign="top"> DB_ENV-&gt;get_lk_conflicts()</td>
185 </tr>
186 </table>
187 </div>
188 </body>
189 </html>