Atomic operations library
Материал из 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. |
Атомная библиотека предоставляет компоненты для мелкозернистого атомарных операций позволяет шлюзов параллельного программирования. Каждая атомарная операция является неделимой по отношению к любым другим атомным операции, которая включает в себя тот же объект. Атомные объекты являются единственным C + + объекты бесплатно гонки данных, то есть, если один поток пишет в атомном, а другой поток читает из него, поведение определено корректно.
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.
| Определено в файле <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) |
шаблон atomic и его специализации для bool, целочисленных типов и указателей (шаблон класса) |
| (C++11) |
проверяет деятельность атомного типа являются блокировка бесплатно 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. (шаблон функции) |
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) |
атомарно заменяет значение атомного объекта с неатомической аргумент 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. (шаблон функции) |
| (C++11) (C++11) |
атомарно получает значение, хранящееся в атомном объекте 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. (шаблон функции) |
| (C++11) (C++11) |
атомарно заменяет значение атомного объекта с неатомической аргумент и возвращает старое значение атомной 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. (шаблон функции) |
| атомарно сравнивает значение атомного объекта с неатомической аргументов и выполняет атомного обмена, если равны или атомную нагрузку, если нет 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. (шаблон функции) | |
| (C++11) (C++11) |
добавляет неатомической значение атомного объекта и получает предыдущее значение атомной 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. (шаблон функции) |
| (C++11) (C++11) |
вычитает неатомической значения от атомного объекта и получает предыдущее значение атомной 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. (шаблон функции) |
| (C++11) (C++11) |
заменяет атомного объекта с результатом логического И с не-атомный аргумента и получает предыдущее значение атомной 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. (шаблон функции) |
| (C++11) (C++11) |
заменяет атомного объекта с результатом логического ИЛИ с неатомической аргумента и получает предыдущее значение атомной 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. (шаблон функции) |
| (C++11) (C++11) |
заменяет атомного объекта с результатом логического XOR с неатомической аргумента и получает предыдущее значение атомной 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. (шаблон функции) |
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) |
безблокировочного логическое атомного типа 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. (класс) |
| атомарно устанавливает флаг true и возвращает его предыдущее значение 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. (функция) | |
| (C++11) (C++11) |
атомарно устанавливает значение флага 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. (функция) |
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 (шаблон функции) |
| (C++11) |
постоянная инициализация атомарных переменных статических продолжительности хранения 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. (функция-макрос) |
| (C++11) |
initializes an std::atomic_flag to false (константа-макрос) |
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) |
определяет памяти заказе ограничений для данного атомарные операции 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. (определение типа) |
| (C++11) |
Удаляет указанный объект из дерева зависимостей 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. (шаблон функции) |
| (C++11) |
общая память зависит от порядка синхронизации забор примитивной 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. (функция) |
| (C++11) |
забор между нитью и обработчик сигнала выполняется в том же потоке 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. (функция) |