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
c8762028
Kaydet (Commit)
c8762028
authored
Ock 04, 2011
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
backport fix from r87741 related to the issue6643 fix in r87727.
üst
2b79a814
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
threading.py
Lib/threading.py
+4
-2
No files found.
Lib/threading.py
Dosyayı görüntüle @
c8762028
...
...
@@ -456,7 +456,8 @@ class Thread(_Verbose):
def
_reset_internal_locks
(
self
):
# private! Called by _after_fork() to reset our internal locks as
# they may be in an invalid state leading to a deadlock or crash.
self
.
__block
.
__init__
()
if
hasattr
(
self
,
'_Thread__block'
):
# DummyThread deletes self.__block
self
.
__block
.
__init__
()
self
.
__started
.
_reset_internal_locks
()
@property
...
...
@@ -884,7 +885,8 @@ def _after_fork():
thread
.
_Thread__ident
=
ident
# Any condition variables hanging off of the active thread may
# be in an invalid state, so we reinitialize them.
thread
.
_reset_internal_locks
()
if
hasattr
(
thread
,
'_reset_internal_locks'
):
thread
.
_reset_internal_locks
()
new_active
[
ident
]
=
thread
else
:
# All the others are already stopped.
...
...
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