Berkeley DB Handles
The Berkeley DB library has a number of object handles. The following table lists those handles, their scope, and whether they are free-threaded (that is, whether multiple threads within a process can share them).
DB_ENV The DB_ENV handle, created by the db_env_create function, references a Berkeley DB database environment—a collection of databases and Berkeley DB subsystems. DB_ENV handles are free-threaded if the DB_THREAD flag is specified to the DBENV→open function when the environment is opened. The handle should not be closed while any other handle remains open that is using it as a reference (for example, DB or DB_TXN). Once either the DBENV→close or DBENV→remove functions are called, the handle may not be accessed ...