Espacios de nombres
Variantes
Acciones

ATOMIC_VAR_INIT

De cppreference.com
< c‎ | atomic

 
 
Operaciones de biblioteca Atómica
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memory_order
atomic_flag
Macros
Original:
Macros
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ATOMIC_***_LOCK_FREE
ATOMIC_FLAG_INIT
ATOMIC_VAR_INIT
kill_dependency
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
atomic_flag_test_and_set
atomic_flag_clear
atomic_init
atomic_is_lock_free
atomic_store
atomic_load
atomic_exchange
atomic_compare_exchange
atomic_fetch_add
atomic_fetch_sub
atomic_fetch_or
atomic_fetch_xor
atomic_fetch_and
atomic_thread_fence
atomic_signal_fence
 
Defined in header <stdatomic.h>
#define ATOMIC_VAR_INIT(value) /* unspecified */
(desde C11)
Expande una expresión que se puede utilizar para inicializar una variable atómica del mismo tipo que value. El valor inicial del objeto atómico de duración de almacenamiento automático que no se inicializa utilizando este macro es indefinido. El valor por defecto (cero) Inicialización de variables estáticas y local de subprocesos produce valor válido sin embargo .
Original:
Expands to an expression that can be used to initialize an atomic variable of the same type as value. The initial value of atomic object of automatic storage duration that is not initialized using this macro is undefined. The default (zero) initialization of static and thread-local variables produces valid value however.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si esta macro no se utiliza para la inicialización de una variable atómica, cualquier acceso durante la inicialización de otro hilo, incluso a través de una operación atómica, es una carrera de datos (lo que puede suceder si la dirección se hace pasar inmediatamente a otro hilo con una operación de memory_order_relaxed).
Original:
If this macro is not used for initialization of an atomic variable, any accesses during initialization from another thread, even through an atomic operation, is a data race (it may happen if the address is immediately passed to another thread with a memory_order_relaxed operation).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ver también

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.

(macro constante) [edit]