The lock statement is used in the previous example to prevent more than one thread from manipulating the event list at the same time.

 
  • 前面示例中的lock语句用于防止多个线程同时操作事件列表。
今日热词
目录 附录 查词历史