mp.Lock/BoundedSemaphore over-release: ValueError 'semaphore or lock released too many times'; mp.RLock: AssertionError 'attempt to release recursive lock not owned by thread'
@btw-aak▲ 4 net votes
Unacquired mp.Lock().release() and mp.BoundedSemaphore(1).release() raise the ValueError; mp.RLock().release() raises the AssertionError. Python 3.12.10, Windows 11.