summaryrefslogtreecommitdiff
path: root/devdocs/c/language%2Fthread_storage_duration.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
commit82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch)
tree158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/c/language%2Fthread_storage_duration.html
parent9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff)
downloaddotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz
dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/c/language%2Fthread_storage_duration.html')
-rw-r--r--devdocs/c/language%2Fthread_storage_duration.html14
1 files changed, 0 insertions, 14 deletions
diff --git a/devdocs/c/language%2Fthread_storage_duration.html b/devdocs/c/language%2Fthread_storage_duration.html
deleted file mode 100644
index 8f92d562..00000000
--- a/devdocs/c/language%2Fthread_storage_duration.html
+++ /dev/null
@@ -1,14 +0,0 @@
- <h1 id="firstHeading" class="firstHeading">Thread storage duration</h1> <p>An object whose identifier is declared with the storage-class specifier <code>_Thread_local</code> <span class="t-mark-rev t-since-c11">(since C11)</span> has thread storage duration. Its lifetime is the entire execution of the thread for which it is created, and its stored value is initialized when the thread is started. There is a distinct object per thread, and use of the declared name in an expression refers to the object associated with the thread evaluating the expression. The result of attempting to indirectly access an object with thread storage duration from a thread other than the one with which the object is associated is implementation-defined.</p>
-<h3 id="Example"> Example</h3> <div class="t-example"> <div class="c source-c"><pre data-language="c">const double PI = 3.14159; /* const variable is global to all threads */
-_Thread_local unsigned int seed; /* seed is a thread-specific variable */
-
-int main(void)
-{
- return 0;
-}</pre></div> <p>Possible output:</p>
-<div class="text source-text"><pre data-language="c">(none)</pre></div> </div> <div class="_attribution">
- <p class="_attribution-p">
- &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
- <a href="https://en.cppreference.com/w/c/language/thread_storage_duration" class="_attribution-link">https://en.cppreference.com/w/c/language/thread_storage_duration</a>
- </p>
-</div>