DB_ENV->mutex_alloc API Ref

#include <db.h>

int DB_ENV->mutex_alloc(DB_ENV *dbenv, u_int32_t flags, db_mutex_t *mutexp);


Description: DB_ENV->mutex_alloc

The DB_ENV->mutex_alloc method allocates a mutex and returns a reference to it into the memory specified by mutexp.

The DB_ENV->mutex_alloc method may not be called before the DB_ENV->open method is called.

The DB_ENV->mutex_alloc method returns a non-zero error value on failure and 0 on success.

Parameters
flags mutexp

Errors

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


EINVAL


Class DB_ENV
See Also Database Environments and Related Methods

APIRef

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