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
ce14c099
Commit
ce14c099
authored
Aug 06, 2009
by
Jesse Noller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge fix for 4660 back to 26 maint
parent
01c90a2c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+0
-5
Lib/multiprocessing/queues.py
Lib/multiprocessing/queues.py
+16
-3
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/multiprocessing.rst
View file @
ce14c099
...
...
@@ -1141,11 +1141,6 @@ their parent process exits. The manager classes are defined in the
Run
the
server
in
the
current
process
.
..
method
::
from_address
(
address
,
authkey
)
A
class
method
which
creates
a
manager
object
referring
to
a
pre
-
existing
server
process
which
is
using
the
given
address
and
authentication
key
.
..
method
::
get_server
()
Returns
a
:
class
:`
Server
`
object
which
represents
the
actual
server
under
...
...
Lib/multiprocessing/queues.py
View file @
ce14c099
...
...
@@ -282,9 +282,22 @@ class JoinableQueue(Queue):
Queue
.
__setstate__
(
self
,
state
[:
-
2
])
self
.
_cond
,
self
.
_unfinished_tasks
=
state
[
-
2
:]
def
put
(
self
,
item
,
block
=
True
,
timeout
=
None
):
Queue
.
put
(
self
,
item
,
block
,
timeout
)
self
.
_unfinished_tasks
.
release
()
def
put
(
self
,
obj
,
block
=
True
,
timeout
=
None
):
assert
not
self
.
_closed
if
not
self
.
_sem
.
acquire
(
block
,
timeout
):
raise
Full
self
.
_notempty
.
acquire
()
self
.
_cond
.
acquire
()
try
:
if
self
.
_thread
is
None
:
self
.
_start_thread
()
self
.
_buffer
.
append
(
obj
)
self
.
_unfinished_tasks
.
release
()
self
.
_notempty
.
notify
()
finally
:
self
.
_cond
.
release
()
self
.
_notempty
.
release
()
def
task_done
(
self
):
self
.
_cond
.
acquire
()
...
...
Misc/ACKS
View file @
ce14c099
...
...
@@ -468,6 +468,7 @@ Craig McPheeters
Lambert Meertens
Bill van Melle
Lucas Prado Melo
Brian Merrell
Luke Mewburn
Mike Meyer
Steven Miale
...
...
Misc/NEWS
View file @
ce14c099
...
...
@@ -283,6 +283,9 @@ Core and Builtins
Library
-------
- Issue #4660: If a multiprocessing.JoinableQueue.put() was preempted, it was
possible to get a spurious 'task_done() called too many times' error.
- Issue #6595: The Decimal constructor now allows arbitrary Unicode
decimal digits in input, as recommended by the standard. Previously
it was restricted to accepting [0-9].
...
...
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