Imagine the following:
// SECTION A
MyClass* object = new MyClass();
std::shared_ptr<void> sharedObject;
// SECTION B (sharedObject is empty)
sharedObject.reset(object);
Is section B lock-free for an empty sharedObject
? Or does it depend of the implementation?
CodePudding user response:
This depends on implementation.
Some pointers: