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
f285bcca
Commit
f285bcca
authored
Oct 19, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be consistent in the spelling of thread-safe(ty).
parent
6dbed2e8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
Doc/c-api/init.rst
Doc/c-api/init.rst
+1
-1
Doc/library/locale.rst
Doc/library/locale.rst
+1
-1
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+1
-1
Doc/library/runpy.rst
Doc/library/runpy.rst
+1
-1
Doc/library/threading.rst
Doc/library/threading.rst
+3
-3
No files found.
Doc/c-api/init.rst
View file @
f285bcca
...
@@ -437,7 +437,7 @@ Thread State and the Global Interpreter Lock
...
@@ -437,7 +437,7 @@ Thread State and the Global Interpreter Lock
single: interpreter lock
single: interpreter lock
single: lock, interpreter
single: lock, interpreter
The Python interpreter is not fully thread
safe. In order to support
The Python interpreter is not fully thread
-
safe. In order to support
multi-threaded Python programs, there's a global lock, called the :dfn:`global
multi-threaded Python programs, there's a global lock, called the :dfn:`global
interpreter lock` or :dfn:`GIL`, that must be held by the current thread before
interpreter lock` or :dfn:`GIL`, that must be held by the current thread before
it can safely access Python objects. Without the lock, even the simplest
it can safely access Python objects. Without the lock, even the simplest
...
...
Doc/library/locale.rst
View file @
f285bcca
...
@@ -39,7 +39,7 @@ The :mod:`locale` module defines the following exception and functions:
...
@@ -39,7 +39,7 @@ The :mod:`locale` module defines the following exception and functions:
If *locale* is omitted or ``None``, the current setting for *category* is
If *locale* is omitted or ``None``, the current setting for *category* is
returned.
returned.
:func:`setlocale` is not thread
safe on most systems. Applications typically
:func:`setlocale` is not thread
-
safe on most systems. Applications typically
start with a call of ::
start with a call of ::
import locale
import locale
...
...
Doc/library/multiprocessing.rst
View file @
f285bcca
...
@@ -214,7 +214,7 @@ However, if you really do need to use some shared data then
...
@@ -214,7 +214,7 @@ However, if you really do need to use some shared data then
The ``'
d
'`` and ``'
i
'`` arguments used when creating ``num`` and ``arr`` are
The ``'
d
'`` and ``'
i
'`` arguments used when creating ``num`` and ``arr`` are
typecodes of the kind used by the :mod:`array` module: ``'
d
'`` indicates a
typecodes of the kind used by the :mod:`array` module: ``'
d
'`` indicates a
double precision float and ``'
i
'`` indicates a signed integer. These shared
double precision float and ``'
i
'`` indicates a signed integer. These shared
objects will be process and thread
safe.
objects will be process and thread
-
safe.
For more flexibility in using shared memory one can use the
For more flexibility in using shared memory one can use the
:mod:`multiprocessing.sharedctypes` module which supports the creation of
:mod:`multiprocessing.sharedctypes` module which supports the creation of
...
...
Doc/library/runpy.rst
View file @
f285bcca
...
@@ -120,7 +120,7 @@ The :mod:`runpy` module provides two functions:
...
@@ -120,7 +120,7 @@ The :mod:`runpy` module provides two functions:
Note that, unlike :func:`run_module`, the alterations made to :mod:`sys`
Note that, unlike :func:`run_module`, the alterations made to :mod:`sys`
are not optional in this function as these adjustments are essential to
are not optional in this function as these adjustments are essential to
allowing the execution of sys.path entries. As the thread
safety
allowing the execution of sys.path entries. As the thread
-
safety
limitations still apply, use of this function in threaded code should be
limitations still apply, use of this function in threaded code should be
either serialised with the import lock or delegated to a separate process.
either serialised with the import lock or delegated to a separate process.
...
...
Doc/library/threading.rst
View file @
f285bcca
...
@@ -789,9 +789,9 @@ Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`,
...
@@ -789,9 +789,9 @@ Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`,
Importing in threaded code
Importing in threaded code
--------------------------
--------------------------
While the import machinery is thread
safe, there are two key
While the import machinery is thread
-safe, there are two key restrictions on
restrictions on threaded imports due to inherent limitations in the way
threaded imports due to inherent limitations in the way that thread-safety is
that thread safety is
provided:
provided:
* Firstly, other than in the main module, an import should not have the
* Firstly, other than in the main module, an import should not have the
side effect of spawning a new thread and then waiting for that thread in
side effect of spawning a new thread and then waiting for that thread in
...
...
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