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
828946e5
Commit
828946e5
authored
May 06, 2015
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix copy/paste errors.
Basically, s/thread/coroutine/.
parent
4b5367c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/asyncio-sync.rst
Doc/library/asyncio-sync.rst
+4
-4
No files found.
Doc/library/asyncio-sync.rst
View file @
828946e5
...
@@ -196,9 +196,9 @@ Condition
...
@@ -196,9 +196,9 @@ Condition
.. method:: notify_all()
.. method:: notify_all()
Wake up all
thread
s waiting on this condition. This method acts like
Wake up all
coroutine
s waiting on this condition. This method acts like
:meth:`notify`, but wakes up all waiting
thread
s instead of one. If the
:meth:`notify`, but wakes up all waiting
coroutine
s instead of one. If the
calling
thread
has not acquired the lock when this method is called, a
calling
coroutine
has not acquired the lock when this method is called, a
:exc:`RuntimeError` is raised.
:exc:`RuntimeError` is raised.
.. method:: release()
.. method:: release()
...
@@ -250,7 +250,7 @@ Semaphore
...
@@ -250,7 +250,7 @@ Semaphore
A semaphore manages an internal counter which is decremented by each
A semaphore manages an internal counter which is decremented by each
:meth:`acquire` call and incremented by each :meth:`release` call. The
:meth:`acquire` call and incremented by each :meth:`release` call. The
counter can never go below zero; when :meth:`acquire` finds that it is zero,
counter can never go below zero; when :meth:`acquire` finds that it is zero,
it blocks, waiting until some other
thread
calls :meth:`release`.
it blocks, waiting until some other
coroutine
calls :meth:`release`.
Semaphores also support the context management protocol.
Semaphores also support the context management protocol.
...
...
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