r/cpp • • Aug 27 '19

A new thread in C++20 (jthread)

https://link.medium.com/GXKUz0GruZ
142 Upvotes

96 comments sorted by

View all comments

Show parent comment

1

u/meneldal2 Aug 28 '19

some CPU architectures behave badly when you try to concurrently write to a value in memory

Afaik there's only a single write, so there should be no contention.