diff Doc/lib/libthread.tex @ 20468:ebfd87e87884 legacy-trunk

Partial patch from SF #452266, by Jason Petrone. This changes Pythread_start_thread() to return the thread ID, or -1 for an error. (It's technically an incompatible API change, but I doubt anyone calls it.)
author Guido van Rossum <guido@python.org>
date Tue, 16 Oct 2001 21:13:49 +0000
parents be3e0d197522
children bc02c3b09626
line wrap: on
line diff
--- a/Doc/lib/libthread.tex	Tue Oct 16 20:42:52 2001 +0000
+++ b/Doc/lib/libthread.tex	Tue Oct 16 21:13:49 2001 +0000
@@ -32,11 +32,10 @@
 \end{datadesc}
 
 \begin{funcdesc}{start_new_thread}{function, args\optional{, kwargs}}
-Start a new thread.  The thread executes the function \var{function}
-with the argument list \var{args} (which must be a tuple).  The
-optional \var{kwargs} argument specifies a dictionary of keyword
-arguments.  When the
-function returns, the thread silently exits.  When the function
+Start a new thread and return its identifier.  The thread executes the function
+\var{function} with the argument list \var{args} (which must be a tuple).  The
+optional \var{kwargs} argument specifies a dictionary of keyword arguments.
+When the function returns, the thread silently exits.  When the function
 terminates with an unhandled exception, a stack trace is printed and
 then the thread exits (but other threads continue to run).
 \end{funcdesc}