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
86eb7e97
Commit
86eb7e97
authored
Jun 04, 2012
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential NameError in multiprocessing.Condition.wait()
parent
ad06444d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Lib/multiprocessing/synchronize.py
Lib/multiprocessing/synchronize.py
+1
-2
No files found.
Lib/multiprocessing/synchronize.py
View file @
86eb7e97
...
...
@@ -216,7 +216,7 @@ class Condition(object):
try
:
# wait for notification or timeout
ret
=
self
.
_wait_semaphore
.
acquire
(
True
,
timeout
)
ret
urn
self
.
_wait_semaphore
.
acquire
(
True
,
timeout
)
finally
:
# indicate that this thread has woken
self
.
_woken_count
.
release
()
...
...
@@ -224,7 +224,6 @@ class Condition(object):
# reacquire lock
for
i
in
range
(
count
):
self
.
_lock
.
acquire
()
return
ret
def
notify
(
self
):
assert
self
.
_lock
.
_semlock
.
_is_mine
(),
'lock is not owned'
...
...
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