Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
MutexConfig..::.MaxMutexes Property
MutexConfig Class See Also Send Feedback

The total number of mutexes to allocate.

Namespace: BerkeleyDB
Assembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

# Syntax

C#
    public uint MaxMutexes { get; set; }

Visual Basic (Declaration)
    Public Property MaxMutexes As UInteger

Visual C++
    public:
    property unsigned int MaxMutexes {
    	unsigned int get ();
    	void set (unsigned int value);
    }

# Remarks

Berkeley DB allocates a default number of mutexes based on the initial configuration of the database environment. That default calculation may be too small if the application has an unusual need for mutexes (for example, if the application opens an unexpectedly large number of databases) or too large (if the application is trying to minimize its memory footprint). MaxMutexes is used to specify an absolute number of mutexes to allocate.

If both Increment and MaxMutexes are set, the value of Increment is silently ignored.

If the database environment already exists when Open(String, DatabaseEnvironmentConfig) is called, the value of MaxMutexes is ignored.

# See Also

MutexConfig Class
BerkeleyDB Namespace