Espacios de nombres
Variantes
Acciones

ATOMIC_FLAG_INIT

De cppreference.com
< cpp‎ | 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.
(C++11)
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.
Banderas atómicas
Original:
Atomic flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Inicialización
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ATOMIC_FLAG_INIT
(C++11)
Memoria pedido
Original:
Memory ordering
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Definido en la cabecera <atomic>
#define ATOMIC_FLAG_INIT /* implementation-defined */
Define la expresión que puede ser utilizado para inicializar std::atomic_flag para borrar el estado. Si la marca tiene una duración de almacenamiento estático, esta inicialización es estática .
Original:
Defines the expression which can be used to initialize std::atomic_flag to clear state. If the flag has static storage duration, this initialization is static.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ejemplo

#include <atomic>
 
std::atomic_flag static_flag = ATOMIC_FLAG_INIT;
 
int main()
{
    std::atomic_flag automatic_flag = ATOMIC_FLAG_INIT;
    std::atomic_flag another_flag(ATOMIC_FLAG_INIT);
}


[editar] Ver también

el bloqueo libre de tipo atómico booleano
Original:
the lock-free boolean atomic type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase) [editar]