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. |
<metanoindex/>
La bibliothèque atomique fournit des composants à grains fins des opérations atomiques permettant la programmation concurrente lockless. Chaque opération atomique est indivisible à l'égard de toute autre opération atomique qui implique le même objet. Objets atomiques sont les seuls objets C + + libres des races de données; qui est, si un thread écrit dans un autre thread atomique tout en y lit, le comportement est bien défini .
Modèle:cpp/atomic/dcl list atomicModèle:cpp/atomic/dcl list atomic is lock freeModèle:cpp/atomic/dcl list atomic storeModèle:cpp/atomic/dcl list atomic loadModèle:cpp/atomic/dcl list atomic exchangeModèle:cpp/atomic/dcl list atomic compare exchangeModèle:cpp/atomic/dcl list atomic fetch addModèle:cpp/atomic/dcl list atomic fetch subModèle:cpp/atomic/dcl list atomic fetch andModèle:cpp/atomic/dcl list atomic fetch orModèle:cpp/atomic/dcl list atomic fetch xorModèle:cpp/atomic/dcl list atomic flagModèle:cpp/atomic/dcl list atomic flag test and setModèle:cpp/atomic/dcl list atomic flag clearModèle:cpp/atomic/dcl list atomic initModèle:cpp/atomic/dcl list ATOMIC VAR INITModèle:cpp/atomic/dcl list ATOMIC FLAG INITModèle:cpp/atomic/dcl list memory orderModèle:cpp/atomic/dcl list kill dependencyModèle:cpp/atomic/dcl list atomic thread fenceModèle:cpp/atomic/dcl list atomic signal fenceOriginal:
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. | |
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. | |
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. | |
Original: Initialization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
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. |