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
41eb85b1
Commit
41eb85b1
authored
May 06, 2012
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make AcquirerProxy.acquire() support timeout argument
parent
b78174c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/multiprocessing/managers.py
Lib/multiprocessing/managers.py
+3
-2
No files found.
Lib/multiprocessing/managers.py
View file @
41eb85b1
...
@@ -957,8 +957,9 @@ class IteratorProxy(BaseProxy):
...
@@ -957,8 +957,9 @@ class IteratorProxy(BaseProxy):
class
AcquirerProxy
(
BaseProxy
):
class
AcquirerProxy
(
BaseProxy
):
_exposed_
=
(
'acquire'
,
'release'
)
_exposed_
=
(
'acquire'
,
'release'
)
def
acquire
(
self
,
blocking
=
True
):
def
acquire
(
self
,
blocking
=
True
,
timeout
=
None
):
return
self
.
_callmethod
(
'acquire'
,
(
blocking
,))
args
=
(
blocking
,)
if
timeout
is
None
else
(
blocking
,
timeout
)
return
self
.
_callmethod
(
'acquire'
,
args
)
def
release
(
self
):
def
release
(
self
):
return
self
.
_callmethod
(
'release'
)
return
self
.
_callmethod
(
'release'
)
def
__enter__
(
self
):
def
__enter__
(
self
):
...
...
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