summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/pool.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 18:40:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 18:40:08 (GMT)
commitfae4c62b1afadea6167682b2b9bd7e7e67d5de17 (patch)
tree31d5978e52ec1f139c476a4ff182300b05e6b9bc /Lib/multiprocessing/pool.py
parent6640d7262874520ad405173c0f2d4b48b1837a8d (diff)
downloadcpython-fae4c62b1afadea6167682b2b9bd7e7e67d5de17.zip
cpython-fae4c62b1afadea6167682b2b9bd7e7e67d5de17.tar.gz
cpython-fae4c62b1afadea6167682b2b9bd7e7e67d5de17.tar.bz2
Merged revisions 65828 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65828 | benjamin.peterson | 2008-08-18 13:31:58 -0500 (Mon, 18 Aug 2008) | 1 line patch up multiprocessing until it's API can be changed too ........
Diffstat (limited to 'Lib/multiprocessing/pool.py')
-rw-r--r--Lib/multiprocessing/pool.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index d7425d5..cb0e49f 100644
--- a/Lib/multiprocessing/pool.py
+++ b/Lib/multiprocessing/pool.py
@@ -99,15 +99,15 @@ class Pool(object):
args=(self._inqueue, self._outqueue, initializer, initargs)
)
self._pool.append(w)
- w.set_name(w.get_name().replace('Process', 'PoolWorker'))
- w.set_daemon(True)
+ w.name = w.get_name().replace('Process', 'PoolWorker')
+ w.daemon = True
w.start()
self._task_handler = threading.Thread(
target=Pool._handle_tasks,
args=(self._taskqueue, self._quick_put, self._outqueue, self._pool)
)
- self._task_handler.set_daemon(True)
+ self._task_handler.daemon = True
self._task_handler._state = RUN
self._task_handler.start()
@@ -115,7 +115,7 @@ class Pool(object):
target=Pool._handle_results,
args=(self._outqueue, self._quick_get, self._cache)
)
- self._result_handler.set_daemon(True)
+ self._result_handler.daemon = True
self._result_handler._state = RUN
self._result_handler.start()