CPP2019SSF28: Unterschied zwischen den Versionen

Aus Verteilte Systeme - Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
   
 
=== Syntax ===
 
=== Syntax ===
<source lang="cpp">
+
<source lang="cpp">
thread_local int counter;
+
thread_local varType varName;
 
 
thread_local unsigned int counter;
 
thread_local unsigned int counter;
 
 
thread_local static unsigned int counter;
 
thread_local static unsigned int counter;
  +
...
 
</source>
 
</source>
   

Version vom 13. August 2019, 15:13 Uhr

Feature:
thread_local

  • Eingeführt in: C11

Syntax

thread_local varType varName;
thread_local unsigned int counter;
thread_local static unsigned int counter;
...

Use Cases

Motivation für die Einführung

Vorherige Lösungsansätze

Warnhinweise

Code-Beispiele