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语句用于防止多个线程同时操作事件列表。
目录 查词历史