Read shared data protected by Mutex without locking Mutex

后端 未结 0 1592
醉梦人生
醉梦人生 2021-01-13 05:56

Given shared data protected by a Mutex. What is the appropriate way to read part of the shared data without needing to lock the Mutex? Is using std::atomic_ref an appropriat

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