DB_ENV->lock_get API Ref

#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);


Description: DB_ENV->lock_get

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.

Parameters
flags lock_mode locker object

Errors

The DB_ENV->lock_get method may fail and return one of the following non-zero errors:


DB_LOCK_DEADLOCK DB_LOCK_NOTGRANTED

DB_LOCK_NOTGRANTED

EINVAL

ENOMEM


Class DB_ENV, DB_LOCK
See Also Locking Subsystem and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.