just::thread Support Forum

General Category => General Discussion about just::thread => Topic started by: TA on December 16, 2010, 05:34:13 PM

Title: std::kill_dependency
Post by: TA on December 16, 2010, 05:34:13 PM
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.
Title: Re: std::kill_dependency
Post by: 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.
Title: Re: std::kill_dependency
Post by: TA on December 17, 2010, 09:55:04 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.
Ah OK..I didn't think about that, thanks.