Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f29ec4b0
Kaydet (Commit)
f29ec4b0
authored
Haz 18, 2012
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15101: Make pool finalizer avoid joining current thread.
üst
da7a6e7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
pool.py
Lib/multiprocessing/pool.py
+6
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/multiprocessing/pool.py
Dosyayı görüntüle @
f29ec4b0
...
@@ -493,7 +493,8 @@ class Pool(object):
...
@@ -493,7 +493,8 @@ class Pool(object):
# We must wait for the worker handler to exit before terminating
# We must wait for the worker handler to exit before terminating
# workers because we don't want workers to be restarted behind our back.
# workers because we don't want workers to be restarted behind our back.
debug
(
'joining worker handler'
)
debug
(
'joining worker handler'
)
worker_handler
.
join
()
if
threading
.
current_thread
()
is
not
worker_handler
:
worker_handler
.
join
()
# Terminate workers which haven't already finished.
# Terminate workers which haven't already finished.
if
pool
and
hasattr
(
pool
[
0
],
'terminate'
):
if
pool
and
hasattr
(
pool
[
0
],
'terminate'
):
...
@@ -503,10 +504,12 @@ class Pool(object):
...
@@ -503,10 +504,12 @@ class Pool(object):
p
.
terminate
()
p
.
terminate
()
debug
(
'joining task handler'
)
debug
(
'joining task handler'
)
task_handler
.
join
()
if
threading
.
current_thread
()
is
not
task_handler
:
task_handler
.
join
()
debug
(
'joining result handler'
)
debug
(
'joining result handler'
)
result_handler
.
join
()
if
threading
.
current_thread
()
is
not
result_handler
:
result_handler
.
join
()
if
pool
and
hasattr
(
pool
[
0
],
'terminate'
):
if
pool
and
hasattr
(
pool
[
0
],
'terminate'
):
debug
(
'joining pool workers'
)
debug
(
'joining pool workers'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
f29ec4b0
...
@@ -70,6 +70,8 @@ Core and Builtins
...
@@ -70,6 +70,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #15101: Make pool finalizer avoid joining current thread.
- Issue #15036: Mailbox no longer throws an error if a flush is done
- Issue #15036: Mailbox no longer throws an error if a flush is done
between operations when removing or changing multiple items in mbox,
between operations when removing or changing multiple items in mbox,
MMDF, or Babyl mailboxes.
MMDF, or Babyl mailboxes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment