General Category > General Discussion about just::thread

std::kill_dependency

(1/1)

TA:
Hi Anthony,

It was interesting to me how does std::kill_dependency implemented and I looked at the code of this function..It looks pretty much interesting. Does it really kill the dependency or it is provided just to support standard?

Thanks.

Anthony Williams:
The dependency ordering stuff only matters where memory_order_consume is distinct from memory_order_acquire. This is not the case for x86 systems, which is the only type of processor currently supported by just::thread. std::kill_dependency is thus a no-op, and is provided for completeness only.

TA:

--- Quote from: Anthony Williams on December 17, 2010, 09:32:12 AM ---The dependency ordering stuff only matters where memory_order_consume is distinct from memory_order_acquire. This is not the case for x86 systems, which is the only type of processor currently supported by just::thread. std::kill_dependency is thus a no-op, and is provided for completeness only.

--- End quote ---
Ah OK..I didn't think about that, thanks.

Navigation

[0] Message Index

Go to full version