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
6595e153
Commit
6595e153
authored
Jun 29, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document PyThreadState_SetAsyncExc().
parent
63fd15c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Doc/api/init.tex
Doc/api/init.tex
+14
-0
No files found.
Doc/api/init.tex
View file @
6595e153
...
...
@@ -685,6 +685,20 @@ interpreter lock has been created.
thread is active, and
\NULL
meant that an exception was raised]
{
2.3
}
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyThreadState
_
SetAsyncExc
}{
long id, PyObject *exc
}
Asynchronously raise an exception in a thread.
The
\var
{
id
}
argument is the thread id of the target thread;
\var
{
exc
}
is the exception object to be raised.
This function does not steal any references to
\var
{
exc
}
.
To prevent naive misuse, you must write your own C extension
to call this. Must be called with the GIL held.
Returns the number of thread states modified; if it returns a number
greater than one, you're in trouble, and you should call it again
with
\var
{
exc
}
set to
\constant
{
NULL
}
to revert the effect.
This raises no exceptions.
\versionadded
{
2.3
}
\end{cfuncdesc}
\section
{
Profiling and Tracing
\label
{
profiling
}}
...
...
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