Espaços nominais
Variantes
Acções

ATOMIC_FLAG_INIT

Da cppreference.com
< cpp‎ | atomic
Revisão das 08h15min de 2 de julho de 2013 por P12bot (discussão | contribs)

(dif) ← Revisão anterior | Revisão actual (dif) | Revisão seguinte → (dif)

 
 
Biblioteca operações 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)
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Bandeiras 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.
Inicialização
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)
Memória de encomenda
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 no cabeçalho <atomic>
#define ATOMIC_FLAG_INIT /* implementation-defined */
Define a expressão que pode ser usado para inicializar std::atomic_flag para limpar estado. Se a bandeira tem duração de armazenagem estática, essa inicialização é estático.
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] Exemplo

#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] Veja também

o lock-livre tipo boolean atômica
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.

(classe) [edit]