kill_dependency - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# kill_dependency

From cppreference.com
< c‎ | atomic

Defined in header `<stdatomic.h>` |  |
A kill_dependency(A y); |  | (since C11)

Informs the compiler that the dependency tree started by an memory_order_consume atomic load operation does not extend past the return value of `kill_dependency`; that is, the argument does not carry a dependency into the return value.

The function is implemented as a macro. `A` is the type of `y`.

### [edit] Parameters

y | - | the expression whose return value is to be removed from a dependency tree

### [edit] Return value

Returns `y`, no longer a part of a dependency tree.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/atomic/kill_dependency&oldid=63526"