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
65d63424
Commit
65d63424
authored
Mar 18, 2004
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor grammatical fixes.
parent
9b976e66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/api/init.tex
Doc/api/init.tex
+3
-3
No files found.
Doc/api/init.tex
View file @
65d63424
...
...
@@ -82,7 +82,7 @@
\ttindex
{
stdout
}
\ttindex
{
stderr
}
\ttindex
{
stdin
}}
The return value points to the first thread state created in the new
sub-interpreter. This thread state is made the current thread
sub-interpreter. This thread state is made
in
the current thread
state. Note that no actual thread is created; see the discussion of
thread states below. If creation of the new interpreter is
unsuccessful,
\NULL
{}
is returned; no exception is set since the
...
...
@@ -457,7 +457,7 @@ structure.
When creating a thread data structure, you need to provide an
interpreter state data structure. The interpreter state data
structure hold global data that is shared by all threads in an
structure hold
s
global data that is shared by all threads in an
interpreter, for example the module administration
(
\code
{
sys.modules
}
). Depending on your needs, you can either create
a new interpreter state data structure, or share the interpreter state
...
...
@@ -555,7 +555,7 @@ for calling into Python from a C thread is
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyEval
_
AcquireThread
}{
PyThreadState *tstate
}
Acquire the global interpreter lock and
then
set the current thread
Acquire the global interpreter lock and set the current thread
state to
\var
{
tstate
}
, which should not be
\NULL
. The lock must
have been created earlier. If this thread already has the lock,
deadlock ensues. This function is not available when thread support
...
...
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