DbLock

APIRef

#include <db_cxx.h>

class DbLock { public: DbLock(); DbLock(const DbLock &); DbLock &operator = (const DbLock &); ~DbLock(); };

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_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, DbEnv::lock_stat, and DbEnv::lock_vec.

APIRef

Copyright Sleepycat Software