summaryrefslogtreecommitdiff
path: root/devdocs/c/atomic%2Fkill_dependency.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%2Fkill_dependency.html
new repository
Diffstat (limited to 'devdocs/c/atomic%2Fkill_dependency.html')
-rw-r--r--devdocs/c/atomic%2Fkill_dependency.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/devdocs/c/atomic%2Fkill_dependency.html b/devdocs/c/atomic%2Fkill_dependency.html
new file mode 100644
index 00000000..3a4d470f
--- /dev/null
+++ b/devdocs/c/atomic%2Fkill_dependency.html
@@ -0,0 +1,20 @@
+ <h1 id="firstHeading" class="firstHeading">kill_dependency</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">A kill_dependency( A y );</pre>
+</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c11">(since C11)</span> </td> </tr> </table> <p>Informs the compiler that the dependency tree started by an <code><a href="memory_order" title="c/atomic/memory order">memory_order_consume</a></code> atomic load operation does not extend past the return value of <code>kill_dependency</code>; that is, the argument does not carry a dependency into the return value.</p>
+<p>The function is implemented as a macro. <code>A</code> is the type of <code>y</code>.</p>
+<h3 id="Parameters"> Parameters</h3> <table class="t-par-begin"> <tr class="t-par"> <td> y </td> <td> - </td> <td> the expression whose return value is to be removed from a dependency tree </td>
+</tr>
+</table> <h3 id="Return_value"> Return value</h3> <p>Returns <code>y</code>, no longer a part of a dependency tree.</p>
+<h3 id="References"> References</h3> <ul>
+<li> C23 standard (ISO/IEC 9899:2023): </li>
+<ul><li> 7.17.3.1 The kill_dependency macro (p: TBD) </li></ul>
+<li> C17 standard (ISO/IEC 9899:2018): </li>
+<ul><li> 7.17.3.1 The kill_dependency macro (p: 203-204) </li></ul>
+<li> C11 standard (ISO/IEC 9899:2011): </li>
+<ul><li> 7.17.3.1 The kill_dependency macro (p: 278) </li></ul>
+</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/atomic/kill_dependency" title="cpp/atomic/kill dependency">C++ documentation</a></span> for <code>kill_dependency</code> </td>
+</tr> </table> <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/kill_dependency" class="_attribution-link">https://en.cppreference.com/w/c/atomic/kill_dependency</a>
+ </p>
+</div>