Re: condition.acquire vs lock.acquire

2018-03-27 Thread dieter
jayshankar nair via Python-list writes: > Is condition.acquire(threading.Condition()) similar to > lock.acquire(threading.Lock). Does both of get access to the lock. Can i use > condition.wait,notify with lock.acquire or i have to use condition.wait, > notify with condition.acquire. > cond.acqu

condition.acquire vs lock.acquire

2018-03-27 Thread jayshankar nair via Python-list
Hi, Is condition.acquire(threading.Condition()) similar to lock.acquire(threading.Lock). Does both of get access to the lock. Can i use condition.wait,notify with lock.acquire or i have to use condition.wait, notify with condition.acquire. cond.acquire()  // can i replace with lock.acquire    w