diff options
author | Colas Le Guernic <clslgrnc@users.noreply.github.com> | 2020-01-23 21:52:17 +0100 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-02-24 11:38:29 -0800 |
commit | 03260002ded57223c5d05b2c99a0a710ee5d34f3 (patch) | |
tree | 7782577a7df3f57eac29b047a8b90e2ce63b14dd /tests/test_pipeline.py | |
parent | fc88507aef921450dd95ada7181f1c316e01ee8b (diff) | |
download | redis-py-03260002ded57223c5d05b2c99a0a710ee5d34f3.tar.gz |
Optimize sleeping while blocking for a lock
When waiting to acquire a lock, the Lock object will sleep until
the lock is acquired or until blocking_timeout has elapsed. This optimization
calculates whether the next iteration will occur after blocking_timeout
has elapsed and short circuits it immediately.
Fixes #1263
Diffstat (limited to 'tests/test_pipeline.py')
0 files changed, 0 insertions, 0 deletions