The mutex alignment, in bytes.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public uint Alignment { get; set; }
Visual Basic (Declaration)
Public Property Alignment As UInteger
Visual C++
property unsigned int Alignment {
	unsigned int get ();
	void set (unsigned int value);


It is sometimes advantageous to align mutexes on specific byte boundaries in order to minimize cache line collisions. Alignment specifies an alignment for mutexes allocated by Berkeley DB.

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

See Also