Hi, I have std::map of shared pointers,
Shared pointers are created and destroyed in main thread, but objects which pointer holds are used in multiple threads.
Is there are possibility when shared pointer is destroyed in main thread it destroys object which hi holds in other thread.
I mean that destructor of object which shared pointer holds is called from other thread then main where shared pointer is destroyed?
Shared pointers are created and destroyed in main thread, but objects which pointer holds are used in multiple threads.
Is there are possibility when shared pointer is destroyed in main thread it destroys object which hi holds in other thread.
I mean that destructor of object which shared pointer holds is called from other thread then main where shared pointer is destroyed?


