summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-14 15:44:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-14 15:44:10 (GMT)
commit7c3e5773954009d65520eb063621cf7724da88e3 (patch)
tree12c9dc646c8a80043616bf4fa54e3dedb84df9ca /Lib/multiprocessing
parente53de3dc4a9021b5edabd44fd495df7770b6249c (diff)
downloadcpython-7c3e5773954009d65520eb063621cf7724da88e3.zip
cpython-7c3e5773954009d65520eb063621cf7724da88e3.tar.gz
cpython-7c3e5773954009d65520eb063621cf7724da88e3.tar.bz2
Issue #7316: the acquire() method of lock objects in the :mod:`threading`
module now takes an optional timeout argument in seconds. Timeout support relies on the system threading library, so as to avoid a semi-busy wait loop.
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r--Lib/multiprocessing/pool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index d2b8dd1..7154d3c 100644
--- a/Lib/multiprocessing/pool.py
+++ b/Lib/multiprocessing/pool.py
@@ -440,10 +440,10 @@ class Pool(object):
p.terminate()
debug('joining task handler')
- task_handler.join(1e100)
+ task_handler.join()
debug('joining result handler')
- result_handler.join(1e100)
+ task_handler.join()
if pool and hasattr(pool[0], 'terminate'):
debug('joining pool workers')