cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
carries_dependency and kill_dependency
carries_dependency and kill_dependency
Aug 18, 2016 at 1:04am UTC
Wu zhen hai
(112)
I read some materials about them, but I can not understand them.
who can illustrate them with simple language and simple example?
Aug 18, 2016 at 5:59am UTC
JLBorges
(13770)
Anthony Williams on
[[carries_dependency]]
http://stackoverflow.com/a/6411703\
(it has a very simple example)
Once we understand what
[[carries_dependency]]
means,
std::kill_dependency()
is straightforward.
http://en.cppreference.com/w/cpp/atomic/kill_dependency
More info: see 'Data Dependency with Acquire-release Ordering and memory_order_consume'
http://www.developerfusion.com/article/138018/memory-ordering-for-atomic-operations-in-c0x/
Topic archived. No new replies allowed.