Atomic operations library
De cppreference.com
< c
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
__STDC_NO_ATOMICS__
(C11) Si la constante macro está definido por el compilador, el <stdatomic.h>
cabecera, el _Atomic palabra clave, y todos los nombres que aquí no se proporcionan.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.
Contenido |
[editar]Tipos
Definido en el archivo de encabezado <stdatomic.h> | |
(C11) | define las limitaciones de memoria de pedido 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. (enum) |
(C11) | lock-free atomic boolean flag (struct) |
[editar]Macros
Definido en el archivo de encabezado <stdatomic.h> | |
indica que el tipo dado atómica es libre de bloqueo 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. (constante de macro) | |
(C11) | inicializa un nuevo 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. (constante de macro) |
(C11) | inicializa un objeto atómico nuevo 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. (macro de función) |
(C11) | rompe una cadena de dependencias para 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. (macro de función) |
[editar]Funciones
Definido en el archivo de encabezado <stdatomic.h> | |
establece un atomic_flag en true y devuelve el valor anterior 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. (función) | |
establece un atomic_flag como falso 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. (función) | |
(C11) | initializes an existing atomic object (función) |
(C11) | indica si el objeto atómico es libre de bloqueo 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. (función) |
almacena un valor en un objeto atómico 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. (función) | |
lee un valor de un objeto atómico 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. (función) | |
swaps un valor con el valor de un objeto atómico 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. (función) | |
swaps un valor con el objeto de una atómico si el valor antiguo es lo que se espera, si no lee el valor antiguo 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. (función) | |
Además atómica 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. (función) | |
atómica resta 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. (función) | |
atómico lógico 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. (función) | |
atómico exclusivo lógico OR 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. (función) | |
atómico lógico AND 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. (función) | |
(C11) | memoria genérica depende del orden de sincronización de la cerca primitiva 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. (función) |
(C11) | valla entre un hilo y un manejador de señales ejecuta en el mismo subproceso 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. (función) |
[editar]Tipos
Esta sección está incompleta Razón: description |
nombre typedef 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 signedchar |
atomic_uchar | _Atomic unsignedchar |
atomic_short | _Atomic short |
atomic_ushort | _Atomic unsignedshort |
atomic_int | _Atomic int |
atomic_uint | _Atomic unsignedint |
atomic_long | _Atomic long |
atomic_ulong | _Atomic unsignedlong |
atomic_llong | _Atomic longlong |
atomic_ullong | _Atomic unsignedlonglong |
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 |