1<!--$Id: deadlock_class.so,v 10.17 2004/08/13 03:38:57 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: DbDeadlockException</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>DbDeadlockException</b> 14</td> 15<td align=right> 16<a href="../api_cxx/api_core.html"><img src="../images/api.gif" alt="API"></a> 17<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td> 18</tr></table> 19<hr size=1 noshade> 20<tt> 21<b><pre> 22#include <db_cxx.h> 23<p> 24class DbDeadlockException : public DbException { ... }; 25</pre></b> 26<hr size=1 noshade> 27<b>Description: DbDeadlockException</b> 28<p>This information describes the DbDeadlockException class and how 29it is used in the Berkeley DB library.</p> 30<p>A DbDeadlockException is thrown when multiple threads competing 31for a lock are deadlocked, when a lock request has timed out, or when a 32lock request would need to block and the transaction has been configured 33to not wait for locks. One of the threads' transactions is selected for 34termination, and a DbDeadlockException is thrown to that thread.</p> 35<p>The <a href="../api_cxx/except_class.html">DbException</a> errno value is set to DB_LOCK_DEADLOCK.</p> 36</tt> 37<table width="100%"><tr><td><br></td><td align=right> 38<a href="../api_cxx/api_core.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a> 39</td></tr></table> 40<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 41</body> 42</html> 43