C++11中的原子量和内存序有什么用(C++,编程语言)

时间:2024-05-02 20:05:32 作者 : 石家庄SEO 分类 : 编程语言
  • TAG :

    C%2B%2B11%E4%B8%AD%E7%9A%84%E5%8E%9F%E5%AD%90%E9%87%8F%E5%92%8C%E5%86%85%E5%AD%98%E5%BA%8F%E6%9C%89%E4%BB%80%E4%B9%88%E7%94%A8

http://en.cppreference.com/w/cpp/concept/TriviallyCopyable

8
1

The ‘__atomic' builtins can be used with any integral scalar or pointer type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are also allowed if ‘__int128' (see __int128) is supported by the architecture.

对于同一个原子变量,release操作所依赖的写入,一定对随后consume操作后依赖于该原子变量的操作可见。

本文:C++11中的原子量和内存序有什么用的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:C++中怎么编写DLL文件下一篇:

4 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18