Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Microsoft Specific

Emits the IPF Memory Fence (mf) instruction, which sets up a hardware memory fence.

void __mf(void);

Intrinsic Architecture



Header file <intrin.h>

A hardware memory fence ensures that all memory reads and writes are made visible to all processors prior to any subsequent memory reads and writes. The __mf intrinsic does not ensure that these memory reads and writes have been accepted by the platform. If that is a requirement, use __mfa.

This routine is only available as an intrinsic.

END Microsoft Specific

© 2016 Microsoft