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
a3c77677
Commit
a3c77677
authored
Nov 23, 2006
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
... and the number of the counting shall be three.
parent
a912c6c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/Queue.py
Lib/Queue.py
+1
-1
No files found.
Lib/Queue.py
View file @
a3c77677
...
@@ -26,7 +26,7 @@ class Queue:
...
@@ -26,7 +26,7 @@ class Queue:
self
.
_init
(
maxsize
)
self
.
_init
(
maxsize
)
# mutex must be held whenever the queue is mutating. All methods
# mutex must be held whenever the queue is mutating. All methods
# that acquire mutex must release it before returning. mutex
# that acquire mutex must release it before returning. mutex
# is shared between the t
wo
conditions, so acquiring and
# is shared between the t
hree
conditions, so acquiring and
# releasing the conditions also acquires and releases mutex.
# releasing the conditions also acquires and releases mutex.
self
.
mutex
=
threading
.
Lock
()
self
.
mutex
=
threading
.
Lock
()
# Notify not_empty whenever an item is added to the queue; a
# Notify not_empty whenever an item is added to the queue; a
...
...
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