_ReadWriteBarrier
This function forces all previous memory accesses to complete before any subsequent memory access is started.
void __cdecl _ReadWriteBarrier(void);
Parameters
None.
Return Values
None.
Remarks
This function is usually used for writing device drivers to make sure that commands have been sent to the device before status is read. The compiler will not reschedule memory reads and writes across an invocation of _ReadWriteBarrier, even on platforms without explicit synchronization instructions.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Cmnintrin.h.
See Also
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.