Edit

Share via


Interlocked.SpeculationBarrier Method

Definition

Defines a memory fence that blocks speculative execution past this point until pending reads and writes are complete.

C#
public static void SpeculationBarrier();

Remarks

The SpeculationBarrier method defines a memory fence (an mfence instruction on x86 and amd64 processors) that blocks speculative execution past this point until pending reads and writes are complete.

Applies to

Product Versions
.NET Framework 4.8, 4.8.1