Yeah, but it was not used consistently across all code, so it came out pretty useless. Not to mention a home-cooked shared-ptr would probably have had some problems
Also, I need to close up many objects - instead of the sequence
CCC->LockAAA(),
CCC->GetAAAXList(),
for each A in AAA call A->DoBBB(),
CCC->UnlockAAA(),
the objects need to hide their internals and let others use
CCC->DoBBBOnAAAList()
instead.
Also, I need to close up many objects - instead of the sequence
CCC->LockAAA(),
CCC->GetAAAXList(),
for each A in AAA call A->DoBBB(),
CCC->UnlockAAA(),
the objects need to hide their internals and let others use
CCC->DoBBBOnAAAList()
instead.