Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
578a58c6
Commit
578a58c6
authored
Nov 10, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13373: multiprocessing.Queue.get() could sometimes block indefinitely
when called with a timeout. Patch by Arnaud Ysmal.
parent
44adecf9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
Lib/multiprocessing/queues.py
Lib/multiprocessing/queues.py
+5
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/multiprocessing/queues.py
View file @
578a58c6
...
...
@@ -126,7 +126,11 @@ class Queue(object):
if
not
self
.
_rlock
.
acquire
(
block
,
timeout
):
raise
Empty
try
:
if
not
self
.
_poll
(
block
and
(
deadline
-
time
.
time
())
or
0.0
):
if
block
:
timeout
=
deadline
-
time
.
time
()
if
timeout
<
0
or
not
self
.
_poll
(
timeout
):
raise
Empty
elif
not
self
.
_poll
():
raise
Empty
res
=
self
.
_recv
()
self
.
_sem
.
release
()
...
...
Misc/ACKS
View file @
578a58c6
...
...
@@ -924,6 +924,7 @@ Bob Yodlowski
Danny Yoo
George Yoshida
Masazumi Yoshikawa
Arnaud Ysmal
Bernard Yue
Moshe Zadka
Milan Zamazal
...
...
Misc/NEWS
View file @
578a58c6
...
...
@@ -76,6 +76,9 @@ Core and Builtins
Library
-------
-
Issue
#
13373
:
multiprocessing
.
Queue
.
get
()
could
sometimes
block
indefinitely
when
called
with
a
timeout
.
Patch
by
Arnaud
Ysmal
.
-
Issue
#
3067
:
Enhance
the
documentation
and
docstring
of
locale
.
setlocale
().
...
...
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