Skip to content

Commit

Permalink
pythongh-126434: Sleep longer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarref committed Nov 14, 2024
1 parent 25236fe commit b1103b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/synchronize.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def wait(self, timeout=None):
return False
else:
# Fixes https://github.com/python/cpython/issues/85772 by spinning and sleeping.
time.sleep(0.000001) # sleep one microsecond
time.sleep(0.010) # sleep 10 milliseconds

def __repr__(self) -> str:
set_status = 'set' if self.is_set() else 'unset'
Expand Down

0 comments on commit b1103b2

Please sign in to comment.