atomic_signal_fence
De 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. |
| Défini dans l'entête <stdatomic.h>
|
||
| void atomic_signal_fence( memory_order order ); |
(depuis C11) | |
Établit la synchronisation de mémoire de commande de la non-atomiques et détendue accès atomiques, comme indiqué par
order, entre un thread et un gestionnaire de signal exécutés sur le même thread. Ceci est équivalent à std::atomic_thread_fence, à l'exception d'instructions CPU pour commander la mémoire sont émises. Seulement réorganisation des instructions par le compilateur est supprimé en tant que order instruit. Par exemple, écrit ne peut pas être déplacé au-delà d'une clôture avec une sémantique de libération et lit ne peut pas être passé devant une clôture avec l'acquisition sémantique .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.
[modifier] Paramètres
| order | - | la mémoire ordonnancement exécuté par cette clôture
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. |
[modifier] Retourne la valeur
(Aucun)
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.
[modifier] Voir aussi
| (C11) |
mémoire générique dépendant de l'ordre de synchronisation clôture 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++ documentation for atomic_signal_fence
| |