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
b38897fc
Kaydet (Commit)
b38897fc
authored
Nis 17, 2013
tarafından
Giampaolo Rodola'
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.
üst
643ea53c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
connection.py
Lib/multiprocessing/connection.py
+1
-1
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+7
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/multiprocessing/connection.py
Dosyayı görüntüle @
b38897fc
...
...
@@ -865,7 +865,7 @@ else:
if
hasattr
(
select
,
'poll'
):
def
_poll
(
fds
,
timeout
):
if
timeout
is
not
None
:
timeout
=
int
(
timeout
)
*
1000
# timeout is in milliseconds
timeout
=
int
(
timeout
*
1000
)
# timeout is in milliseconds
fd_map
=
{}
pollster
=
select
.
poll
()
for
fd
in
fds
:
...
...
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
b38897fc
...
...
@@ -698,6 +698,13 @@ class _TestQueue(BaseTestCase):
for
p
in
workers
:
p
.
join
()
def
test_timeout
(
self
):
q
=
multiprocessing
.
Queue
()
start
=
time
.
time
()
self
.
assertRaises
(
pyqueue
.
Empty
,
q
.
get
,
True
,
0.2
)
delta
=
time
.
time
()
-
start
self
.
assertGreaterEqual
(
delta
,
0.19
)
#
#
#
...
...
Misc/NEWS
Dosyayı görüntüle @
b38897fc
...
...
@@ -29,6 +29,9 @@ Core and Builtins
Library
-------
-
Issue
#
17707
:
multiprocessing
.
Queue
's get() method does not block for short
timeouts.
- Issue #17012: shutil.which() no longer fallbacks to the PATH environment
variable if empty path argument is specified. Patch by Serhiy Storchaka.
...
...
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