June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> extern "C" { typedef int (*pgin_fcn_type)(DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie); typedef int (*pgout_fcn_type)(DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie); }; int DbEnv::memp_register(int ftype, pgin_fcn_type pgin_fcn, pgout_fcn_type pgout_fcn);
The DbEnv::memp_register method registers page-in and page-out functions for files of type ftype in the specified pool.
If the pgin_fcn function is non-NULL, it is called each time a page is read into the memory pool from a file of type ftype, or a page is created for a file of type ftype (see the DB_MPOOL_CREATE flag for the DbMpoolFile::get method).
If the pgout_fcn function is non-NULL, it is called each ...