mpool_sync()

synchronize backing file with memory pool 

Function


SYNOPSIS

#include <db.h>

#include <mpool.h>

int mpool_sync(MPOOL *mp);


DESCRIPTION

The mpool_sync() function writes all modified pages associated with the specified memory pool to the backing file.


PARAMETERS

mp 

Is the memory pool whose data is to be flushed. This must be a pointer returned by a prior call to mpool_open().


RETURN VALUES

On success, mpool_sync() return 0. Otherwise, it returns -1, and sets errno to one of the conditions specified for write().


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
mpool_close(), mpool_filter(), mpool_get(), mpool_new(), mpool_open(), mpool_put(), write()


PTC MKS Toolkit 10.3 Documentation Build 39.