Non-atomically store the supplied value in an instance of std::atomic<T*>
.
void atomic_init(atomic<T*> volatile* p,T* v);
Non-atomically store the value of v
in *p
.
Since this store is non-atomic, any concurrent access to the
object pointed to by p
from another thread (even with atomic operations) constitutes
a data race.
Nothing.
#include <atomic>