Пространства имён
Варианты
Действия

Atomic operations library

Материал из cppreference.com
< cpp

Атомная библиотека предоставляет компоненты для мелкозернистого атомарных операций позволяет шлюзов параллельного программирования. Каждая атомарная операция является неделимой по отношению к любым другим атомным операции, которая включает в себя тот же объект. Атомные объекты являются единственным 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.
Определено в файле <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, целочисленных типов и указателей
(шаблон класса) [edit]
проверяет деятельность атомного типа являются блокировка бесплатно
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.

(шаблон функции) [edit]
Операции по атомной типов
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:
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.

(шаблон функции) [edit]
атомарно получает значение, хранящееся в атомном объекте
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.

(шаблон функции) [edit]
атомарно заменяет значение атомного объекта с неатомической аргумент и возвращает старое значение атомной
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.

(шаблон функции) [edit]
атомарно сравнивает значение атомного объекта с неатомической аргументов и выполняет атомного обмена, если равны или атомную нагрузку, если нет
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.

(шаблон функции) [edit]
добавляет неатомической значение атомного объекта и получает предыдущее значение атомной
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.

(шаблон функции) [edit]
вычитает неатомической значения от атомного объекта и получает предыдущее значение атомной
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.

(шаблон функции) [edit]
заменяет атомного объекта с результатом логического И с не-атомный аргумента и получает предыдущее значение атомной
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.

(шаблон функции) [edit]
заменяет атомного объекта с результатом логического ИЛИ с неатомической аргумента и получает предыдущее значение атомной
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.

(шаблон функции) [edit]
заменяет атомного объекта с результатом логического 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.

(шаблон функции) [edit]
Тип флага и операций
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:
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.

(класс) [edit]
атомарно устанавливает флаг 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.

(функция) [edit]
атомарно устанавливает значение флага 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.

(функция) [edit]
Инициализация
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
non-atomic initialization of a default-constructed atomic object
(шаблон функции) [edit]
постоянная инициализация атомарных переменных статических продолжительности хранения
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.

(функция-макрос) [edit]
initializes an std::atomic_flag to false
(константа-макрос) [edit]
Память синхронизации заказа
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.
определяет памяти заказе ограничений для данного атомарные операции
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.

(определение типа) [edit]
Удаляет указанный объект из дерева зависимостей 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.

(шаблон функции) [edit]
общая память зависит от порядка синхронизации забор примитивной
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.

(функция) [edit]
забор между нитью и обработчик сигнала выполняется в том же потоке
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.

(функция) [edit]