Berkeley DB: DBENV->set_tas_spins
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# DBENV->set_tas_spins |

`

###

    #include <db.h>

    int
    DBENV->set_tas_spins(DB_ENV *dbenv, u_int32_t tas_spins);

# Description

Specify that test-and-set mutexes should spin tas_spins times without blocking.

This value defaults to 1 on uniprocessor systems and to 50 times the number of processors on multiprocessor systems.

The DBENV->set_tas_spins interface affects the entire application, not only the environment in which it is called.

The DBENV->set_tas_spins interface may only be used to configure Berkeley DB before the DBENV->open interface is called.

The DBENV->set_tas_spins function returns a non-zero error value on failure and 0 on success.

# Errors

EINVAL
  An invalid flag value or parameter was specified.

  Called after DBENV->open was called.

# See Also

DBENV->close, db_env_create, DBENV->open, DBENV->remove, DBENV->err, db_strerror, db_version, DBENV->set_cachesize, DBENV->set_errcall, DBENV->set_errfile, DBENV->set_errpfx, DBENV->set_mutexlocks, DBENV->set_pageyield, DBENV->set_paniccall, DBENV->set_region_init and DBENV->set_verbose.`

Copyright Sleepycat Software