The collection must be locked before adding new items to prevent the consumer and primary threads from accessing the collection simultaneously.

  • 在添加新项前,该集合必须处于锁定状态,以防止使用者线程和主线程同时访问该集合。
目录 查词历史