Volatile.ReadBarrier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Synchronizes memory access as follows:
The processor that executes the current thread cannot reorder instructions in such a way that memory reads before the call to ReadBarrier() execute after memory accesses that follow the call to ReadBarrier().
public:
static void ReadBarrier();
public static void ReadBarrier();
static member ReadBarrier : unit -> unit
Public Shared Sub ReadBarrier ()