Safe to share singleton across threads

前端 未结 0 1665
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 21:02

If I create a C++ singleton, and implement a mutex to protect read/write to class properties. Is such a singleton (in general) safe to share across threads?

I read some

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