News for hackers. Stuff that matters.
Re:A flexible, lightweight, spin-lock barrier by MaxGanzII on Tuesday March 15, 2022 @05:55PM (#30692345)
> So yes, that "++*barrier" operation is read-modify-write atomically AND with memory-barriers in sequential-consistency style

The quoted material does not describe this assertion.

Re:A flexible, lightweight, spin-lock barrier by dragontamer on Tuesday March 15, 2022 @06:05PM (#30692477)
> Built-in increment and decrement operators and compound assignment are read-modify-write atomic operations with total sequentially consistent ordering (as if using memory_order_seq_cst). If less strict synchronization semantics are desired, the standard library functions may be used instead.