Method guarantees that only a single thread can execute the enclosed code with the locked object.

  • 方法获取的锁将保证只有一个线程可以使用锁定对象执行所包含的代码。
目录 查词历史