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

后端 未结 0 1615
粉色の甜心
粉色の甜心 2021-02-15 19:55

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.

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