Skip to content

Is content of chapter 7 Release/Acquire model correct???? #174

Closed
@FischLu

Description

@FischLu

Actual Description

  • File Path: 07-thread.md
  • Original paragraph:

As you can see, std::memory_order_release ensures that the write behavior after it does not occur before the release operation, which is a forward barrier, and std::memory_order_acquire ensures that its previous write behavior does not occur after this acquisition operation, there is a backward barrier.

Expected Description

according to cppreference, I think this description is the other way around, which should be:

As you can see, std::memory_order_release ensures that the write behavior before it does not occur after the release operation, which is a backward barrier, and std::memory_order_acquire ensures that its subsequent read/write behavior does not occur before this acquisition operation, which is a forward barrier.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions