Library Version 12.1.6.0

Chapter 9. Mutex Methods
Prev |  | Next

## Chapter 9. Mutex Methods

This chapter describes methods that can be used to manage mutexes within DB. Many of the methods described here are used to configure DB's internal mutex system. However, a series of APIs are available for use as a general-purpose, cross platform mutex management system. These methods can be used independently of DB's main purpose, which is as a high-end data management engine.

## Mutex Methods

Mutexes and Related Methods | Description
--- | ---
DB_ENV->mutex_alloc() | Allocate a mutex
DB_ENV->mutex_free() | Free a mutex
DB_ENV->mutex_lock() | Lock a mutex
DB_ENV->mutex_stat() | Mutex statistics
DB_ENV->mutex_stat_print() | Print mutex statistics
DB_ENV->mutex_unlock() | Unlock a mutex
Mutex Configuration
DB_ENV->mutex_set_align(), DB_ENV->mutex_get_align() | Configure mutex alignment
DB_ENV->mutex_set_increment(), DB_ENV->mutex_get_increment() | Configure number of additional mutexes
DB_ENV->mutex_set_init(), DB_ENV->mutex_get_init() | Configure initial number of mutexes
DB_ENV->mutex_set_max(), DB_ENV->mutex_get_max() | Configure total number of mutexes
DB_ENV->mutex_set_tas_spins(), DB_ENV->mutex_get_tas_spins() | Configure test-and-set mutex spin count

Prev |  | Next
DB_MPOOLFILE->set_priority() | Home | DB_ENV->mutex_alloc()