Atomic operations library
来自cppreference.com
< c
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
,如果宏常数
__STDC_NO_ATOMICS__(C11)定义由编译器,头<stdatomic.h>,在关键字的_Atomic,和此处列出的所有的名字都没有提供Original:
If the macro constant
__STDC_NO_ATOMICS__(C11) is defined by the compiler, the header <stdatomic.h>, the keyword _Atomic, and all of the names listed here are not provided.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 类型
| Defined in header
<stdatomic.h> | |
| (C11) |
定义内存排序约束 Original: defines memory ordering constraints The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (枚举) |
| (C11) |
lock-free atomic boolean flag (struct) |
[编辑] 宏
| Defined in header
<stdatomic.h> | |
| 表明,在给定的原子类型是无锁的 Original: indicates that the given atomic type is lock-free The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) | |
| (C11) |
初始化一个新的atomic_flag Original: initializes a new atomic_flag The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| (C11) |
初始化一个新的原子对象 Original: initializes a new atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数宏) |
| (C11) |
打破了依赖链memory_order_consume Original: breaks a dependency chain for memory_order_consume The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数宏) |
[编辑] 功能
| Defined in header
<stdatomic.h> | |
| 的atomic_flag设置为true,并返回旧的值 Original: sets an atomic_flag to true and returns the old value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 设置为false atomic_flag Original: sets an atomic_flag to false The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| (C11) |
initializes an existing atomic object (函数) |
| (C11) |
表示是否的原子对象是无锁的 Original: indicates whether the atomic object is lock-free The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| 存储一个值,该值在一个原子对象 Original: stores a value in an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 读取一个值,该值从一个原子对象 Original: reads a value from an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 交换值与原子的对象的值 Original: swaps a value with the value of an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 交换价值的一个原子对象,如果旧值的期望是什么,否则读旧的值 Original: swaps a value with the an atomic object if the old value is what is expected, otherwise reads the old value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 原子加成 Original: atomic addition The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 原子减法 Original: atomic subtraction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 原子逻辑OR Original: atomic logical OR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 原子的逻辑“异或” Original: atomic logical exclusive OR The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 原子逻辑 Original: atomic logical AND The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| (C11) |
通用内存的顺序独立的栅栏同步原语 Original: generic memory order-dependent fence synchronization primitive The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C11) |
围栏之间的线程和信号处理器,在同一个线程中执行 Original: fence between a thread and a signal handler executed in the same thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
[编辑] 类型
| 本节是不完整的 原因: description |
| 自定义类型的名称
Original: Typedef name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Full type name |
atomic_bool
|
_Atomic _Bool |
atomic_char
|
_Atomic char |
atomic_schar
|
_Atomic signed char |
atomic_uchar
|
_Atomic unsigned char |
atomic_short
|
_Atomic short |
atomic_ushort
|
_Atomic unsigned short |
atomic_int
|
_Atomic int |
atomic_uint
|
_Atomic unsigned int |
atomic_long
|
_Atomic long |
atomic_ulong
|
_Atomic unsigned long |
atomic_llong
|
_Atomic long long |
atomic_ullong
|
_Atomic unsigned long long |
atomic_char16_t
|
_Atomic char16_t |
atomic_char32_t
|
_Atomic char32_t |
atomic_wchar_t
|
_Atomic wchar_t |
atomic_int_least8_t
|
_Atomic int_least8_t |
atomic_uint_least8_t
|
_Atomic uint_least8_t |
atomic_int_least16_t
|
_Atomic int_least16_t |
atomic_uint_least16_t
|
_Atomic uint_least16_t |
atomic_int_least32_t
|
_Atomic int_least32_t |
atomic_uint_least32_t
|
_Atomic uint_least32_t |
atomic_int_least64_t
|
_Atomic int_least64_t |
atomic_uint_least64_t
|
_Atomic uint_least64_t |
atomic_int_fast8_t
|
_Atomic int_fast8_t |
atomic_uint_fast8_t
|
_Atomic uint_fast8_t |
atomic_int_fast16_t
|
_Atomic int_fast16_t |
atomic_uint_fast16_t
|
_Atomic uint_fast16_t |
atomic_int_fast32_t
|
_Atomic int_fast32_t |
atomic_uint_fast32_t
|
_Atomic uint_fast32_t |
atomic_int_fast64_t
|
_Atomic int_fast64_t |
atomic_uint_fast64_t
|
_Atomic uint_fast64_t |
atomic_intptr_t
|
_Atomic intptr_t |
atomic_uintptr_t
|
_Atomic uintptr_t |
atomic_size_t
|
_Atomic size_t |
atomic_ptrdiff_t
|
_Atomic ptrdiff_t |
atomic_intmax_t
|
_Atomic intmax_t |
atomic_uintmax_t
|
_Atomic uintmax_t |