summaryrefslogtreecommitdiff
path: root/devdocs/c/atomic%2Fatomic_lock_free_consts.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/c/atomic%2Fatomic_lock_free_consts.html
new repository
Diffstat (limited to 'devdocs/c/atomic%2Fatomic_lock_free_consts.html')
-rw-r--r--devdocs/c/atomic%2Fatomic_lock_free_consts.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/devdocs/c/atomic%2Fatomic_lock_free_consts.html b/devdocs/c/atomic%2Fatomic_lock_free_consts.html
new file mode 100644
index 00000000..ad4bd120
--- /dev/null
+++ b/devdocs/c/atomic%2Fatomic_lock_free_consts.html
@@ -0,0 +1,27 @@
+ <h1 id="firstHeading" class="firstHeading">ATOMIC_*_LOCK_FREE</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;stdatomic.h&gt;</code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl t-since-c11"> <td> <pre data-language="c">#define ATOMIC_BOOL_LOCK_FREE /* implementation-defined */
+#define ATOMIC_CHAR_LOCK_FREE /* implementation-defined */
+#define ATOMIC_CHAR16_T_LOCK_FREE /* implementation-defined */
+#define ATOMIC_CHAR32_T_LOCK_FREE /* implementation-defined */
+#define ATOMIC_WCHAR_T_LOCK_FREE /* implementation-defined */
+#define ATOMIC_SHORT_LOCK_FREE /* implementation-defined */
+#define ATOMIC_INT_LOCK_FREE /* implementation-defined */
+#define ATOMIC_LONG_LOCK_FREE /* implementation-defined */
+#define ATOMIC_LLONG_LOCK_FREE /* implementation-defined */
+#define ATOMIC_POINTER_LOCK_FREE /* implementation-defined */</pre>
+</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c11">(since C11)</span> </td> </tr> <tr class="t-dcl t-since-c23"> <td> <pre data-language="c">#define ATOMIC_CHAR8_T_LOCK_FREE /* implementation-defined */</pre>
+</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c23">(since C23)</span> </td> </tr> </table> <p>Expands to <a href="../language/constant_expression" title="c/language/constant expression">preprocessor constant expressions</a> that evaluate to either <code>0</code>, <code>1</code>, or <code>2</code> which indicate the lock-free property of the corresponding <a href="../thread#Atomic_operations" title="c/thread">atomic types</a> (both signed and unsigned).</p>
+<table class="t-dsc-begin"> <tr class="t-dsc-hitem"> <th> Value </th> <th> Explanation </th>
+</tr> <tr class="t-dsc"> <td> <code>0</code> </td> <td> The atomic type is never lock-free </td>
+</tr> <tr class="t-dsc"> <td> <code>1</code> </td> <td> The atomic type is sometimes lock-free </td>
+</tr> <tr class="t-dsc"> <td> <code>2</code> </td> <td> The atomic type is always lock-free </td>
+</tr> </table> <h3 id="References"> References</h3> <ul>
+<li> C17 standard (ISO/IEC 9899:2018): </li>
+<ul><li> 7.17.1/3 atomic lock-free macros (p: 200) </li></ul>
+<li> C11 standard (ISO/IEC 9899:2011): </li>
+<ul><li> 7.17.1/3 atomic lock-free macros (p: 273) </li></ul>
+</ul> <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/atomic/ATOMIC_LOCK_FREE_consts" class="_attribution-link">https://en.cppreference.com/w/c/atomic/ATOMIC_LOCK_FREE_consts</a>
+ </p>
+</div>