What's the overhead from shared_ptr being thread-safe?

后端 未结 0 1634
陌清茗
陌清茗 2021-02-15 19:46

std::shared_ptr is guaranteed to be thread-safe. I don\'t know what mechanism the typical implementations use to ensure this, but surely it must have some overhead.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题