diff options
author | brian.quinlan <devnull@localhost> | 2009-10-02 05:29:54 +0000 |
---|---|---|
committer | brian.quinlan <devnull@localhost> | 2009-10-02 05:29:54 +0000 |
commit | 35a66ee20837957a6247602fbc653e0857c0b531 (patch) | |
tree | 1d3d0d07c45c6a4c35fd589fc90a6124f60cc56a /python3/futures/process.py | |
parent | 302fdf3ce110469902de4d8e84557f20356ef312 (diff) | |
download | futures-35a66ee20837957a6247602fbc653e0857c0b531.tar.gz |
Remove use of multiprocess executor in crawl example. Also generate a warning if a ProcessPoolExecutor is used.
Diffstat (limited to 'python3/futures/process.py')
-rw-r--r-- | python3/futures/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python3/futures/process.py b/python3/futures/process.py index 94d7988..71dd602 100644 --- a/python3/futures/process.py +++ b/python3/futures/process.py @@ -13,6 +13,7 @@ import atexit import queue import multiprocessing import threading +import warnings import weakref _thread_references = set() @@ -119,6 +120,8 @@ def _result(executor_reference, class ProcessPoolExecutor(Executor): def __init__(self, max_processes=None): + warnings.warn('ProcessPoolExecutor has known deadlocking behavior') + if max_processes is None: max_processes = multiprocessing.cpu_count() |