_WriteBarrier

This function forces all previous memory write operations to complete before any subsequent write operation is started.

void __cdecl _WriteBarrier(void);

Parameters

None.

Return Values

None.

Remarks

This function is usually used for writing device drivers to make sure that a set of commands has been sent to the device before further commands are issued. The compiler will not reschedule memory writes across an invocation of _WriteBarrier, even on platforms without explicit synchronization instructions.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cmnintrin.h.

See Also

Common Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.