Chapter 6.  The DB_LOCK Handle

#include <db.h>

typedef struct __db_lock_u DB_LOCK;  

The locking interfaces for the Berkeley DB database environment are methods of the DB_ENV handle. The DB_LOCK object is the handle for a single lock, and has no methods of its own.

Locking Subsystem and Related Methods