Gets or sets whether the lock prefix is used.

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

Syntax

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

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).

Implements

ILockInstruction..::..Lock

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