...
/Data dependencies with std::memory_order_consume
Data dependencies with std::memory_order_consume
This lesson explains data dependencies with std::mem_order_consume in C++.
We'll cover the following...
std::memory_order_consume
deals with data dependencies on atomics; these data dependencies exist in two ways. First, let us look at carries-a-dependency-to in a thread and dependency-ordered before between two threads. Both dependencies introduce a happens-before relation. These are the kind of relations we are looking for. What does carries-a-dependency-to and dependency-order-before mean?