On 12/14/2015 05:53 PM, Martin Sebor wrote:
The C atomic_init macro is implemented in terms of simple assignment
to the atomic variable pointed to by its first argument. That's
inefficient since the variable under initialization must not be
accessed by other threads and assignment provides seque
The C atomic_init macro is implemented in terms of simple assignment
to the atomic variable pointed to by its first argument. That's
inefficient since the variable under initialization must not be
accessed by other threads and assignment provides sequentially
consistent semantics. The inefficien