[Python-checkins] CVS: python/dist/src/Doc/lib libthread.tex,1.22,1.23

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 16 Oct 2001 14:13:51 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29764/Doc/lib

Modified Files:
	libthread.tex 
Log Message:
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.)



Index: libthread.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libthread.tex,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** libthread.tex	2000/04/05 15:00:38	1.22
--- libthread.tex	2001/10/16 21:13:49	1.23
***************
*** 33,41 ****
  
  \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
  terminates with an unhandled exception, a stack trace is printed and
  then the thread exits (but other threads continue to run).
--- 33,40 ----
  
  \begin{funcdesc}{start_new_thread}{function, args\optional{, kwargs}}
! 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).