High-level Compare And Swap (CAS) functions?

后端 未结 7 1433
清酒与你
清酒与你 2020-12-28 08:43

I\'d like to document what high-level (i.e. C++ not inline assembler ) functions or macros are available for Compare And Swap (CAS) atomic primitives...

E.g., WIN32

7条回答
  •  清歌不尽
    2020-12-28 09:21

    There have been a series of working group papers on this subject proposing changes to the C++ Standard Library. WG N2427 (C++ Atomic Types and Operations) is the most recent, which contributes to section 29 -- Atomic operations library -- of the pending standard.

提交回复
热议问题