Destructing outside the lock when removing items from C++ standard containers--Raymond Chen
How do you do it?
Destructing outside the lock when removing items from C++ standard containers
by Raymond Chen
From the article:
Last time, we saw that object destruction is a hidden callout that can cause you to violate the rule against calling out to external code while holding an internal lock...