Defined in header <atomic> template< class T >
void atomic_init( std::atomic<T>* obj, T desired ); (since C++11) template< class T >
void atomic_init( volatile std::atomic<T>* obj, T desired ); (since C++11)
Initializes the default-constructed atomic object object with the value desired. The function is not atomic: concurrent access from another thread, even through an atomic operation, is a data race.
If obj was not default-constructed, the be