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
51a860ee
Commit
51a860ee
authored
May 18, 2019
by
Géry Ogam
Committed by
Cheryl Sabella
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct typos in the Barrier specification (GH-9395)
parent
b5947842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/threading.rst
Doc/library/threading.rst
+2
-2
No files found.
Doc/library/threading.rst
View file @
51a860ee
...
...
@@ -968,7 +968,7 @@ As an example, here is a simple way to synchronize a client and server thread::
Return the barrier to the default, empty state. Any threads waiting on it
will receive the :class:`BrokenBarrierError` exception.
Note that using this function may
can
require some external
Note that using this function may require some external
synchronization if there are other threads whose state is unknown. If a
barrier is broken it may be better to just leave it and create a new one.
...
...
@@ -976,7 +976,7 @@ As an example, here is a simple way to synchronize a client and server thread::
Put the barrier into a broken state. This causes any active or future
calls to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use
this for example if one of the needs to abort, to avoid deadlocking the
this for example if one of the
threads
needs to abort, to avoid deadlocking the
application.
It may be preferable to simply create the barrier with a sensible
...
...
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