◐ Shell
clean mode source ↗

Atomic operations library – cppreference.com

Die Atomic Bibliothek bietet Komponenten für feingranulare atomare Operationen unter Berücksichtigung sperrenfreier nebenläufiger Programmierung. Jede atomare Operation ist unteilbar in Bezug auf jede andere atomare Operation, die das selbe Objekt betrifft. Atomare Objekte sind die einzigen C + +-Objekte, die frei von Data Races sind, das heißt, wenn ein Thread ein atomares Objekt schreibt, während ein anderer Thread daraus liest, ist das Verhalten wohldefiniert.

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.

definiert in Header <atomic>

Atomic Typen

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)

Klassentemplate für atomaren Zugriff und Spezialisierungen für bool-, Integrale- und Zeigertypen
(Klassen-Template) [edit]

Operationen auf atomare Typen

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.

Prüft, ob die Operationen eines atomaren Typs lock-frei sind
(Funktions-Template) [edit]

ersetzt atomar den Wert des atomaren Objekts durch ein nichtatomares Argument

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.


(Funktions-Template) [edit]

erhält atomar den Wert eines atomaren Objekts

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.


(Funktions-Template) [edit]

atomar ersetzt den Wert des atomaren Objekt mit nicht-elementare Argument und gibt den alten Wert des atomaren

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.


(Funktions-Template) [edit]

atomar vergleicht den Wert des atomaren Objekt mit nicht-elementare Argument und führt atomaren Austausch wenn gleiche oder atomare Last, wenn nicht

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.


(Funktions-Template) [edit]

fügt eine nicht-elementare Wert einem atomaren Objekt und erhält den vorherigen Wert des atomaren

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.


(Funktions-Template) [edit]

subtrahiert eine nicht-elementare Wert aus einer atomaren Objekt und erhält den vorherigen Wert des atomaren

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.


(Funktions-Template) [edit]

ersetzt das atomare Objekt mit dem Ergebnis der logischen UND mit einem nicht-Atom Argument und erhält den vorherigen Wert des atomaren

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.


(Funktions-Template) [edit]

ersetzt das atomare Objekt mit dem Ergebnis der logischen ODER mit einem nicht-Atom Argument und erhält den vorherigen Wert des atomaren

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.


(Funktions-Template) [edit]

ersetzt das atomare Objekt mit dem Ergebnis der logischen XOR mit einem nicht-Atom Argument und erhält den vorherigen Wert des atomaren

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.


(Funktions-Template) [edit]

Flag Art und Operationen

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.

Die Lock-freie boolean atomaren Typ

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.


(Klasse) [edit]

atomar setzt das Flag auf true und gibt den vorherigen Wert

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.


(Funktion) [edit]

atomar setzt den Wert der Flagge auf 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.


(Funktion) [edit]

Initialisierung

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
(Funktions-Template) [edit]

konstanten Initialisierung eines atomaren Variable static Lagerdauer

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.


(funktionieren Makro) [edit]
initializes an std::atomic_flag to false
(Makro konstant) [edit]

Speicher-Synchronisation Bestellung

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.

definiert Speicher Bestellung Einschränkungen für den angegebenen atomaren Operation

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.


(typedef) [edit]

Entfernt das angegebene Objekt aus der std::memory_order_consume Abhängigkeit Baum

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.


(Funktions-Template) [edit]

generisches speicherordnungsabhängiges Synchronisationsprimitiv

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.


(Funktion) [edit]

Barriere zwischen einem Thread und einem Signalhandler, der im selben Thread ausgeführt wird

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.


(Funktion) [edit]