If you want clients to be able to create new atomic operations on your class, as we did in Section 4.4, you need to document which locks they should acquire to do so safely.

 
  • 如果你想要客户能够在你的类上创建一个新的原子操作,正如我们在章节4.;4所做的,你需要文化描述那些锁,他们可以获得并安全地这么做。
今日热词
目录 附录 查词历史