DBENV->set_tas_spins |
![]() ![]() |
#include <db.h>int DBENV->set_tas_spins(DB_ENV *dbenv, u_int32_t tas_spins);
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.
Called after DBENV->open was called.
![]() ![]() |