Skip to content

_ReadWriteBarrier() is deprecated in MSVC 2015 (possibly earlier) #747

@staffantj

Description

@staffantj

With the library being rebased on C++11, we should be using std::atomic_thread_fence instead per https://docs.microsoft.com/en-us/cpp/intrinsics/readwritebarrier?view=vs-2015

On the assumption that the fence is only being used to prevent read/write re-ordering, it should be sufficient / equivalent to use std::memory_order_acq_rel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions