DB_ENV->lock_get |
#include <db.h>int DB_ENV->lock_get(DB_ENV *env, u_int32_t locker, u_int32_t flags, const DBT *object, const db_lockmode_t lock_mode, DB_LOCK *lock);
The DB_ENV->lock_get method acquires a lock from the lock table, returning information about it in the lock parameter.
The DB_ENV->lock_get method returns a non-zero error value on failure and 0 on success.
ParametersSee DB_ENV->set_lk_conflicts and Standard Lock Modes for more information on the lock conflict matrix.
The DB_ENV->lock_get method may fail and return one of the following non-zero errors:
Copyright (c) 1996,2008 Oracle. All rights reserved.