atomic_signal_fence
Материал из cppreference.com
|
|
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. |
| Заголовочный файл <stdatomic.h>
|
||
| void atomic_signal_fence( memory_order order ); |
(начиная с C11) | |
Устанавливает памяти синхронизации упорядочения неатомической и расслабленной атомного доступа, в соответствии с инструкциями
order, между нитью и обработчик сигнала выполняется в том же потоке. Это эквивалентно std::atomic_thread_fence, за исключением не инструкции процессора к памяти упорядочении выдачи. Только изменение порядка инструкций компилятор подавляется order инструктирует. Так, например, пишет, не может быть перемещен прошлом забор с выпуском семантики и читает не может быть перемещен вперед забор с семантикой приобрести.Original:
Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed by
order, between a thread and a signal handler executed on the same thread. This is equivalent to std::atomic_thread_fence, except no CPU instructions for memory ordering are issued. Only reordering of the instructions by the compiler is suppressed as order instructs. For example, writes cannot be moved past a fence with release semantics and reads cannot be moved ahead of a fence with acquire semantics.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.
[править] Параметры
| order | - | памяти упорядочения выполняться с помощью этого забора
Original: the memory ordering executed by this fence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возвращаемое значение
(Нет)
Original:
(none)
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.
[править] См. также
| (C11) |
общая память зависит от порядка синхронизации забор примитивной 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++ документация для atomic_signal_fence
| |