[Python-checkins] python/dist/src/Doc/lib libthreading.tex,1.15,1.16
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Sun, 29 Jun 2003 09:58:43 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv24496/Doc/lib
Modified Files:
libthreading.tex
Log Message:
Add settrace() and setprofile() functions to the threading library.
Index: libthreading.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libthreading.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** libthreading.tex 6 Jan 2003 16:38:10 -0000 1.15
--- libthreading.tex 29 Jun 2003 16:58:41 -0000 1.16
***************
*** 91,94 ****
--- 91,108 ----
\end{classdesc*}
+ \begin{funcdesc}{settrace}{func}
+ Set a trace function \index{trace function} for all threads started
+ from the \module{threading} module. The \var{func} will be passed to
+ \cfuntion{sys.settrace} for each thread, before its \method{run}
+ method is called.
+ \end{funcdesc}
+
+ \begin{funcdesc}{setprofile}{func}
+ Set a profile function \index{profile function} for all threads started
+ from the \module{threading} module. The \var{func} will be passed to
+ \cfuntion{sys.setprofile} for each thread, before its \method{run}
+ method is called.
+ \end{funcdesc}
+
Detailed interfaces for the objects are documented below.