On 10/29/07, Tomash Brechko <[EMAIL PROTECTED]> wrote: > But if *v is simply shared, do all stores to it matter? No, only the > final value is relevant.
Actually it depends, it might matter. If you have a loop checking the value of *v on a different thread and it does not change until this loop is done, then you end up with a wrong wait. This is the same as what violatile is for really where it will change out side of the current thread. -- Pinski