threading.Condition()¶
-
threading.Condition(*args, **kwargs)[source]¶ Factory function that returns a new condition variable object.
A condition variable allows one or more threads to wait until they are notified by another thread.
If the lock argument is given and not None, it must be a Lock or RLock object, and it is used as the underlying lock. Otherwise, a new RLock object is created and used as the underlying lock.