Assert waiters and waiter are still the same
This commit is contained in:
parent
06f93a032b
commit
fb3de73d1c
@ -81,6 +81,7 @@ class LockDict:
|
|||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
with self._lock:
|
with self._lock:
|
||||||
|
assert waiters[0] is waiter and self._dict[key] is waiters
|
||||||
del waiters[0]
|
del waiters[0]
|
||||||
if waiters:
|
if waiters:
|
||||||
waiters[0].release()
|
waiters[0].release()
|
||||||
|
Loading…
Reference in New Issue
Block a user