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
71a28a91
Kaydet (Commit)
71a28a91
authored
Tem 08, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rebind locally the globals which can be looked up at shutdown
(to avoid the warnings seen on a buildbot)
üst
37009207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
connection.py
Lib/multiprocessing/connection.py
+6
-6
util.py
Lib/multiprocessing/util.py
+5
-1
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
71a28a91
...
...
@@ -290,8 +290,8 @@ if win32:
"""
_buffered
=
b
''
def
_close
(
self
):
win32
.
CloseHandle
(
self
.
_handle
)
def
_close
(
self
,
_CloseHandle
=
win32
.
CloseHandle
):
_
CloseHandle
(
self
.
_handle
)
def
_send_bytes
(
self
,
buf
):
overlapped
=
win32
.
WriteFile
(
self
.
_handle
,
buf
,
overlapped
=
True
)
...
...
@@ -376,13 +376,13 @@ class Connection(_ConnectionBase):
"""
if
win32
:
def
_close
(
self
):
win32
.
closesocket
(
self
.
_handle
)
def
_close
(
self
,
_close
=
win32
.
closesocket
):
_close
(
self
.
_handle
)
_write
=
win32
.
send
_read
=
win32
.
recv
else
:
def
_close
(
self
):
os
.
close
(
self
.
_handle
)
def
_close
(
self
,
_close
=
os
.
close
):
_
close
(
self
.
_handle
)
_write
=
os
.
write
_read
=
os
.
read
...
...
Lib/multiprocessing/util.py
Dosyayı görüntüle @
71a28a91
...
...
@@ -188,7 +188,11 @@ class Finalize(object):
_finalizer_registry
[
self
.
_key
]
=
self
def
__call__
(
self
,
wr
=
None
):
def
__call__
(
self
,
wr
=
None
,
# Need to bind these locally because the globals can have
# been cleared at shutdown
_finalizer_registry
=
_finalizer_registry
,
sub_debug
=
sub_debug
):
'''
Run the callback unless it has already been called or cancelled
'''
...
...
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