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