理想的にはshared_ptrの参照カウンタを調べるところからdeleteが完了するまではセマフォで保護すべきなんだろうけど、shared_ptrの参照カウンタが変化する頻度を考えると出来ないんだろうなー
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
理想的にはshared_ptrの参照カウンタを調べるところからdeleteが完了するまではセマフォで保護すべきなんだろうけど、shared_ptrの参照カウンタが変化する頻度を考えると出来ないんだろうなー