head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.53.59; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.30.10; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.49.00; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.10.15.03.47.33; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.59; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @ Berkeley DB: DbLock

DbLock

APIRef

import com.sleepycat.db.*;

public class DbLock extends Object { ... }

Description

The DbEnv lock methods and the DbLock class are used to provide general-purpose locking. Although designed to work with the other Db classes, they are also useful for more general locking purposes. Locks can be shared between processes.

In most cases, when multiple threads or processes are using locking, the deadlock detector, db_deadlock should be run.

Class

DbEnv, DbLock

See Also

DbEnv.set_lk_conflicts, DbEnv.set_lk_detect, DbEnv.set_lk_max, DbEnv.set_lk_max_lockers, DbEnv.set_lk_max_locks, DbEnv.set_lk_max_objects, DbEnv.lock_detect, DbEnv.lock_get, DbEnv.lock_id, DbLock.put, and DbEnv.lock_stat.

APIRef

Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @d1 1 a1 1 @ 1.1.1.1 log @Import: RPM 4.0.3 @ text @@ 1.1.1.2 log @Import: RPM 4.0.4 @ text @d1 1 a1 1 d17 1 a17 1 APIRef d38 1 d45 1 a45 2 DbEnv.lock_id_free, DbEnv.lock_put, d50 1 a50 1 APIRef @ 1.1.1.3 log @Import: RPM 4.0.5 @ text @d1 2 a2 2 a3 1 d27 6 a32 3

The locking interfaces for the Berkeley DB database environment are methods of the DbEnv handle. The DbLock object is the handle for a single lock, and has no methods of its own. d34 1 a34 1 DbEnv, DbLock d36 12 a47 1 Locking Subsystem and Related Methods @ 1.1.1.4 log @Import: RPM 4.1 @ text @d1 2 a2 2 d4 1 d28 3 a30 6

The DbEnv lock methods and the DbLock class are used to provide general-purpose locking. Although designed to work with the other Db classes, they are also useful for more general locking purposes. Locks can be shared between processes.

In most cases, when multiple threads or processes are using locking, the deadlock detector, db_deadlock should be run. d32 1 a32 1 DbEnv, DbLock d34 1 a34 12 DbEnv.set_lk_conflicts, DbEnv.set_lk_detect, DbEnv.set_lk_max_lockers, DbEnv.set_lk_max_locks, DbEnv.set_lk_max_objects, DbEnv.lock_detect, DbEnv.lock_get, DbEnv.lock_id, DbEnv.lock_id_free, DbEnv.lock_put, and DbEnv.lock_stat. @ 1.1.1.5 log @Import: RPM 4.1.1 @ text @d1 2 a2 2 a3 1 d27 6 a32 3

The locking interfaces for the Berkeley DB database environment are methods of the DbEnv handle. The DbLock object is the handle for a single lock, and has no methods of its own. d34 1 a34 1 DbEnv, DbLock d36 12 a47 1 Locking Subsystem and Related Methods @