Sujet : Re: Memory ordering
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.archDate : 20. Dec 2024, 01:48:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk2etp$33ckv$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 12/19/2024 3:59 PM, MitchAlsup1 wrote:
On Thu, 19 Dec 2024 21:19:24 +0000, Chris M. Thomasson wrote:
[...]
std::atomic<unsigned long> m_state = 0;
m_state.store(std::memory_order_release);
Does not require an explicit barrier on the x86. LOCK, MFENCE, ect...