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
21c94b3d
Commit
21c94b3d
authored
Nov 10, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13373: multiprocessing.Queue.get() could sometimes block indefinitely
when called with a timeout. Patch by Arnaud Ysmal.
parents
bacb7931
29efe34f
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 @
21c94b3d
...
...
@@ -129,7 +129,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 @
21c94b3d
...
...
@@ -1068,6 +1068,7 @@ Bob Yodlowski
Danny Yoo
George Yoshida
Masazumi Yoshikawa
Arnaud Ysmal
Bernard Yue
Moshe Zadka
Milan Zamazal
...
...
Misc/NEWS
View file @
21c94b3d
...
...
@@ -365,6 +365,9 @@ Core and Builtins
Library
-------
-
Issue
#
13373
:
multiprocessing
.
Queue
.
get
()
could
sometimes
block
indefinitely
when
called
with
a
timeout
.
Patch
by
Arnaud
Ysmal
.
-
Issue
#
13254
:
Fix
Maildir
initialization
so
that
maildir
contents
are
read
correctly
.
...
...
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