Gets or sets whether the lock prefix is used.

Namespace: SharpAssembler.x86
Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
bool Lock { get; set; }
Visual Basic
Property Lock As Boolean
	Get
	Set
Visual C++
property bool Lock {
	bool get ();
	void set (bool value);
}

Field Value

trueTruetruetrue (True in Visual Basic) to enable the lock prefix; otherwise, falseFalsefalsefalse (False in Visual Basic). The default is falseFalsefalsefalse (False in Visual Basic).

Remarks

When this property is set to trueTruetruetrue (True in Visual Basic), the lock signal is asserted before accessing the specified memory location. When the lock signal has already been asserted, the instruction must wait for it to be released. Instructions without the lock prefix do not check the lock signal, and will be executed even when the lock signal is asserted by some other instruction.

See Also