Closed passerbyzhao closed 1 year ago
class threading.Semaphore(value=1)
acquire(blocking=True, timeout=None)
当 blocking 设置为 False``时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回``False;
当 blocking 设置为 False时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回False;
时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回
当 blocking 设置为 `False`时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回`False`;
False
fixed
class threading.Semaphore(value=1)
的acquire(blocking=True, timeout=None)
子项中当 blocking 设置为 False``时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回``False;
当 blocking 设置为 `False`时调用,不会阻塞。如果没有参数的调用会阻塞,立即返回`False`;