By documenting that a class is thread-hostile, you inform users that they cannot use the class safely from multiple threads, even with external synchronization.

 
  • 通过将类记录为线程对立的,您就告知用户即使使用了外部同步,他们也不能在多线程中安全地使用这个类。
今日热词
目录 附录 查词历史