1
<!--$Id: lock_put.so,v 10.21 2000/03/01 21:41:29 bostic Exp $-->
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
6
<title>Berkeley DB: DbLock::put</title>
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
11
<a name="2"><!--meow--></a>
12
<table width="100%"><tr valign=top>
17
<a href="../api_cxx/cxx_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
22
#include <db_cxx.h>
25
DbLock::put(DbEnv *env);
28
<p>The DbLock::put method releases <b>lock</b> from the lock table.
29
<p>The DbLock::put method either returns a non-zero error value or throws an exception that
30
encapsulates a non-zero error value on failure, and returns 0 on success.
32
<p>The DbLock::put method may fail and throw an exception or return a non-zero error for the following conditions:
34
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
36
<p>The DbLock::put method may fail and throw an exception or return a non-zero error for errors specified for other Berkeley DB and C library or system methods.
37
If a catastrophic error has occurred, the DbLock::put method may fail and either
38
return <a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a> or throw an exception encapsulating
39
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
42
<a href="../api_cxx/dbenv_class.html">DbEnv</a>, <a href="../api_cxx/lock_class.html">DbLock</a>
44
<a href="../api_cxx/env_set_lk_conflicts.html">DbEnv::set_lk_conflicts</a>,
45
<a href="../api_cxx/env_set_lk_detect.html">DbEnv::set_lk_detect</a>,
46
<a href="../api_cxx/env_set_lk_max.html">DbEnv::set_lk_max</a>,
47
<a href="../api_cxx/env_set_lk_max_lockers.html">DbEnv::set_lk_max_lockers</a>,
48
<a href="../api_cxx/env_set_lk_max_locks.html">DbEnv::set_lk_max_locks</a>,
49
<a href="../api_cxx/env_set_lk_max_objects.html">DbEnv::set_lk_max_objects</a>,
50
<a href="../api_cxx/lock_detect.html">DbEnv::lock_detect</a>,
51
<a href="../api_cxx/lock_get.html">DbEnv::lock_get</a>,
52
<a href="../api_cxx/lock_id.html">DbEnv::lock_id</a>,
53
<a href="../api_cxx/lock_put.html">DbLock::put</a>,
54
<a href="../api_cxx/lock_stat.html">DbEnv::lock_stat</a>,
56
<a href="../api_cxx/lock_vec.html">DbEnv::lock_vec</a>.
58
<table width="100%"><tr><td><br></td><td align=right>
59
<a href="../api_cxx/cxx_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
61
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>