tmp/tmp8exbi3sb/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
-
### Thread storage duration <a id="basic.stc.thread">[[basic.stc.thread]]</a>
|
| 2 |
|
| 3 |
-
All variables declared with the `thread_local` keyword have
|
| 4 |
-
storage duration*. The storage for these entities
|
| 5 |
duration of the thread in which they are created. There is a distinct
|
| 6 |
object or reference per thread, and use of the declared name refers to
|
| 7 |
the entity associated with the current thread.
|
| 8 |
|
| 9 |
-
A variable with thread storage duration
|
| 10 |
-
|
| 11 |
-
destroyed on thread exit
|
|
|
|
| 12 |
|
|
|
|
| 1 |
+
#### Thread storage duration <a id="basic.stc.thread">[[basic.stc.thread]]</a>
|
| 2 |
|
| 3 |
+
All variables declared with the `thread_local` keyword have
|
| 4 |
+
*thread storage duration*. The storage for these entities lasts for the
|
| 5 |
duration of the thread in which they are created. There is a distinct
|
| 6 |
object or reference per thread, and use of the declared name refers to
|
| 7 |
the entity associated with the current thread.
|
| 8 |
|
| 9 |
+
[*Note 1*: A variable with thread storage duration is initialized as
|
| 10 |
+
specified in [[basic.start.static]], [[basic.start.dynamic]], and
|
| 11 |
+
[[stmt.dcl]] and, if constructed, is destroyed on thread exit
|
| 12 |
+
[[basic.start.term]]. — *end note*]
|
| 13 |
|