Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

_ReadBarrier

Microsoft Specific

Limits the compiler optimizations that can reorder memory access operations across the point of the call.

Caution note Caution

The _ReadBarrier, _WriteBarrier, and _ReadWriteBarrier compiler intrinsics and the MemoryBarrier macro are all deprecated and should not be used. For inter-thread communication, use mechanisms such as atomic_thread_fence and std::atomic<T> that are defined in the C++ Standard Template Library. For hardware access, use the /volatile:iso compiler option together with the volatile (C++) keyword.

void _ReadBarrier(void);

Intrinsic

Architecture

_ReadBarrier

x86, x64

Header file <intrin.h>

The _ReadBarrier intrinsic limits the compiler optimizations that can remove or reorder memory access operations across the point of the call.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.