Atomic operations library
De cppreference.com
< cpp
[] |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
La bibliothque atomique fournit des composants grains fins des oprations atomiques permettant la programmation concurrente lockless. Chaque opration atomique est indivisible l'gard de toute autre opration atomique qui implique le mme objet. Objets atomiques sont les seuls objets C + + libres des races de donnes; qui est, si un thread crit dans un autre thread atomique tout en y lit, le comportement est bien dfini .
Original:
The atomic library provides components for fine-grained atomic operations allowing for lockless concurrent programming. Each atomic operation is indivisible with regards to any other atomic operation that involves the same object. Atomic objects are the only C++ objects free of data races; that is, if one thread writes to an atomic while another thread reads from it, the behavior is well-defined.
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.
Defined in header
<atomic> | |
Original: Atomic 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) |
modle de classe atomique et spcialisations pour les types bool, intgrales, et le pointeur Original: atomic class template and specializations for bool, integral, and pointer types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
vrifie si les oprations du type atomique sont sans verrou Original: checks if the atomic type's operations are lock-free The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
Original: Operations on atomic 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) (C++11) |
remplace atomiquement la valeur de l'objet atomique avec un argument non-atomique Original: atomically replaces the value of the atomic object with a non-atomic argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) (C++11) |
obtient atomiquement la valeur stocke dans un objet atomique Original: atomically obtains the value stored 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. (fonction gnrique) |
(C++11) (C++11) |
remplace atomiquement la valeur de l'objet atomique avec des non-atomique argument et retourne l'ancienne valeur de l'atomique Original: atomically replaces the value of the atomic object with non-atomic argument and returns the old value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
compare atomiquement la valeur de l'objet atomique non atomique avec l'argument, et ralise un change atomique gal ou si la charge atomique sinon Original: atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) | |
(C++11) (C++11) |
ajoute une valeur non atomique un objet atomique et obtient la valeur prcdente de l'atome Original: adds a non-atomic value to an atomic object and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) (C++11) |
soustrait une valeur non atomique partir d'un objet atomique et obtient la valeur prcdente de l'atome Original: subtracts a non-atomic value from an atomic object and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) (C++11) |
remplace l'objet atomique avec le rsultat de la combinaison logique ET avec un argument non atomique et obtient la valeur prcdente de l'atome Original: replaces the atomic object with the result of logical AND with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) (C++11) |
remplace l'objet atomique avec le rsultat de OU logique avec un argument non atomique et obtient la valeur prcdente de l'atome Original: replaces the atomic object with the result of logical OR with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) (C++11) |
remplace l'objet atomique avec le rsultat de la logique XOR avec un argument non atomique et obtient la valeur prcdente de l'atome Original: replaces the atomic object with the result of logical XOR with a non-atomic argument and obtains the previous value of the atomic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
Original: Flag type and operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
la serrure sans type boolen atomique 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) |
(C++11) (C++11) |
dfinit de manire atomique le drapeau pour true et renvoie sa valeur prcdente Original: atomically sets the flag to true and returns its previous value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
(C++11) (C++11) |
dfinit atomiquement la valeur de l'indicateur de false Original: atomically sets the value of the 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. (fonction) |
Original: Initialization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
non-atomic initialization of a default-constructed atomic object (fonction gnrique) |
(C++11) |
l'initialisation d'une variable constante atomique de la dure de stockage statique Original: constant initialization of an atomic variable of static storage duration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction macro) |
(C++11) |
initialise un std::atomic_flag false Original: initializes an std::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. (constante macro) |
Original: Memory synchronization ordering The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
dfinit des contraintes de mmoire de commande pour l'opration donne atomique Original: defines memory ordering constraints for the given atomic operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
(C++11) |
supprime l'objet spcifi partir de l'arbre des dpendances std::memory_order_consume Original: removes the specified object from the std::memory_order_consume dependency tree The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction gnrique) |
(C++11) |
mmoire gnrique dpendant de l'ordre de synchronisation clture primitive 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. (fonction) |
(C++11) |
clture entre un fil et un gestionnaire de signal excute dans le mme 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. (fonction) |