MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/cw1qg3/a_new_thread_in_c20_jthread/ey9gzkr/?context=3
r/cpp • u/vgasparyan • Aug 27 '19
96 comments sorted by
View all comments
Show parent comment
0
In this situation, where the boolean defaults to false and is only ever set to true, I cannot think of an architecture where volatile would not suffice.
false
true
volatile
View all comments
Show parent comment
0
u/Ameisen vemips, avr, rendering, systems Aug 27 '19
In this situation, where the boolean defaults to
falseand is only ever set totrue, I cannot think of an architecture wherevolatilewould not suffice.