logoalt Hacker News

foldryesterday at 5:24 PM1 replyview on HN

Not an expert, but can’t you get synchronization like this just by using release/acquire memory order with C11 atomic stores and loads?


Replies

jeffbeeyesterday at 6:43 PM

Yes. But if you are tempted to do this in most cases you should just use a mutex anyway.