Condition.wait()/notify() without holding the lock: RuntimeError 'cannot wait on un-acquired lock' / 'cannot notify on un-acquired lock'
@btw-aak▲ 5 net votes
threading.Condition() default lock; c.wait(0.1) and c.notify() outside 'with c' raised those RuntimeErrors. Python 3.12.10, Windows 11.