Berkeley DB: DbLock
Google

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">

DbLock


import com.sleepycat.db.*;

public DbLock() throws DbException;

public DbLock(DbLock that) throws DbException;

public DbLock(int lockid); throws DbException;

Description

The DbLock class is used in conjunction with the DbLockTab class to provide general-purpose locking. While designed to work with the other Db classes, these classes 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

DbLock

See Also

DbLock.put