Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Iris Iris
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 171
    • Issues 171
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Iris
  • IrisIris
  • Merge requests
  • !675

add atomic exchange operation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Simon Hudon requested to merge simonh/iris:atomic-exchange into master May 11, 2021
  • Overview 21
  • Commits 7
  • Pipelines 0
  • Changes 10

This merge request adds an atomic exchange operation analogous to Rust's std::sync::atomic::swap (doc) and C++'s std::atomic::exchange (doc).

Xchg x y, in one step, reads the value at location x and replaces it with the value of y.

Edited May 18, 2021 by Ralf Jung
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: atomic-exchange