Interlocked.SpeculationBarrier 方法

定義

定義記憶體柵欄以封鎖這個點之後的理論式執行,直到擱置的讀取和寫入完成為止。Defines a memory fence that blocks speculative execution past this point until pending reads and writes are complete.

public:
 static void SpeculationBarrier();
public static void SpeculationBarrier ();
static member SpeculationBarrier : unit -> unit
Public Shared Sub SpeculationBarrier ()

備註

方法會定義記憶體範圍(x86 和mfence amd64 處理器上的指示),封鎖過去這個點的推測執行,直到擱置的讀取和寫入完成為止。 SpeculationBarrierThe 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.

適用於