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