The atomic_init() function makes sense to use with structure's members when creating a new instance of a strucutre. In other places, use atomic store operations instead, in order to avoid data races.
The atomic_init() function makes sense to use with structure's members when creating a new instance of a strucutre. In other places, use atomic store operations instead, in order to avoid data races.