◐ Shell
clean mode source ↗

Atomic operations library - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

Se il __STDC_NO_ATOMICS__(C11) macro costante è definita dal compilatore, il <stdatomic.h> intestazione, il _Atomic parola chiave, e tutti i nomi elencati non sono forniti.

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.

Tipi

Definizione nell'header <stdatomic.h>

definisce i vincoli di memoria ordinazione

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) [modifica]
lock-free atomic boolean flag
(struct) [modifica]

Macro

Definizione nell'header <stdatomic.h>

indica che il tipo di dato atomico è senza blocchi

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.


(macro costante) [modifica]

inizializza una nuova 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 costante) [modifica]

inizializza un nuovo oggetto atomico

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.


(funzione macro) [modifica]

spezza una catena di dipendenza per 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.


(funzione macro) [modifica]

Funzioni

Definizione nell'header <stdatomic.h>

imposta un atomic_flag su true e restituisce il vecchio valore

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.


(funzione) [modifica]

imposta un atomic_flag su false

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.


(funzione) [modifica]
initializes an existing atomic object
(funzione) [modifica]

indica se l'oggetto atomico è senza blocchi

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.


(funzione) [modifica]

memorizza un valore in un oggetto atomico

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.


(funzione) [modifica]

legge un valore da un oggetto atomico

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.


(funzione) [modifica]

swap un valore con il valore di un oggetto atomico

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.


(funzione) [modifica]

swap un valore con il un oggetto atomico se il valore storico è quello che è previsto, in caso contrario si legge il vecchio valore

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.


(funzione) [modifica]

Inoltre atomico

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.


(funzione) [modifica]

atomica sottrazione

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.


(funzione) [modifica]

atomico OR logico

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.


(funzione) [modifica]

atomico logico esclusivo

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.


(funzione) [modifica]

atomico logico

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.


(funzione) [modifica]

memorie generiche dipendente dall'ordine sincronizzazione recinzione 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.


(funzione) [modifica]

barriera tra un filo e un gestore di segnale eseguita nello stesso thread

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.


(funzione) [modifica]

Tipi

Typedef nome

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