#include <db_cxx.h> class DbLock { public: DbLock(); DbLock(const DbLock &); DbLock &operator = (const DbLock &); ~DbLock(); };
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.
Locking Subsystem and Related Methods | Description |
---|---|
DbDeadlockException | Exception class for deadlocks |
DbLockNotGrantedException | Exception class for lock request failures |
DbEnv::lock_detect() | Perform deadlock detection |
DbEnv::lock_get() | Acquire a lock |
DbEnv::lock_id() | Acquire a locker ID |
DbEnv::lock_id_free() | Release a locker ID |
DbEnv::lock_put() | Release a lock |
DbEnv::lock_stat() | Return lock subsystem statistics |
DbEnv::lock_stat_print() | Print lock subsystem statistics |
DbEnv::lock_vec() | Acquire/release locks |
DbEnv::cdsgroup_begin() | Get a locker ID in Berkeley DB Concurrent Data Store |
Locking Subsystem Configuration | |
DbEnv::set_timeout() , DbEnv::get_timeout() | Set/get lock and transaction timeout |
DbEnv::set_lk_conflicts() , DbEnv::get_lk_conflicts() | Set/get lock conflicts matrix |
DbEnv::set_lk_detect() , DbEnv::get_lk_detect() | Set/get automatic deadlock detection |
DbEnv::set_lk_max_lockers() , DbEnv::get_lk_max_lockers() | Set/get maximum number of lockers |
DbEnv::set_lk_max_locks() , DbEnv::get_lk_max_locks() | Set/get maximum number of locks |
DbEnv::set_lk_max_objects() , DbEnv::get_lk_max_objects() | Set/get maximum number of lock objects |
DbEnv::set_lk_partitions() , DbEnv::get_lk_partitions() | Set/get number of lock partitions |
DbEnv::set_lk_priority() , DbEnv::get_lk_priority() | Set/get a locker's deadlock priority |
DbEnv::set_lk_tablesize() , DbEnv::get_lk_tablesize() | Set/get size of the lock object hash table |