In the https://en.cppreference.com/w/cpp/memory/shared_ptr example:
Although the constructor and destructor is called only once, why means the shared_ptr is thread safe.