• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/api_reference/CXX/
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>DbDeadlockException</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="dbexception.html" title="Chapter 6. The DbException Class" />
11    <link rel="prev" href="dbexception.html" title="Chapter 6. The DbException Class" />
12    <link rel="next" href="dblocknotgranted.html" title="DbLockNotGrantedException" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DbDeadlockException</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="dbexception.html">Prev</a> </td>
22          <th width="60%" align="center">Chapter 6. The DbException Class</th>
23          <td width="20%" align="right"> <a accesskey="n" href="dblocknotgranted.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="sect1" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title" style="clear: both"><a id="dbdeadlock"></a>DbDeadlockException</h2>
33          </div>
34        </div>
35      </div>
36      <pre class="programlisting">#include &lt;db_cxx.h&gt;
37
38class DbDeadlockException : public DbException { ... }; </pre>
39      <p>
40            This information describes the <code class="classname">DbDeadlockException</code> class and how 
41            it is used by the various Berkeley DB classes.
42    </p>
43      <p>
44        A <code class="classname">DbDeadlockException</code> is thrown when multiple threads competing for a
45        lock are deadlocked, when a lock request has timed out (and
46        <a class="link" href="envset_flags.html#envset_flags_DB_TIME_NOTGRANTED">DB_TIME_NOTGRANTED</a>
47        has not been set in the environment), or when a lock
48        request would need to block and the transaction has been configured to not wait for locks.
49        One of the threads' transactions is selected for termination, and a
50        <code class="classname">DbDeadlockException</code> is thrown to that thread.
51
52
53
54    </p>
55      <p>
56        The <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a> errno value is set to
57        <code class="literal">DB_LOCK_DEADLOCK</code>.
58    </p>
59    </div>
60    <div class="navfooter">
61      <hr />
62      <table width="100%" summary="Navigation footer">
63        <tr>
64          <td width="40%" align="left"><a accesskey="p" href="dbexception.html">Prev</a> </td>
65          <td width="20%" align="center">
66            <a accesskey="u" href="dbexception.html">Up</a>
67          </td>
68          <td width="40%" align="right"> <a accesskey="n" href="dblocknotgranted.html">Next</a></td>
69        </tr>
70        <tr>
71          <td width="40%" align="left" valign="top">Chapter 6. The DbException Class </td>
72          <td width="20%" align="center">
73            <a accesskey="h" href="index.html">Home</a>
74          </td>
75          <td width="40%" align="right" valign="top"> DbLockNotGrantedException</td>
76        </tr>
77      </table>
78    </div>
79  </body>
80</html>
81