diff Doc/lib/libthreading.tex @ 29679:d0f15977f37f legacy-trunk

Add settrace() and setprofile() functions to the threading library.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Sun, 29 Jun 2003 16:58:41 +0000
parents b2fc494963b2
children f4e2e5a5ec62
line wrap: on
line diff
--- a/Doc/lib/libthreading.tex	Sun Jun 29 16:56:38 2003 +0000
+++ b/Doc/lib/libthreading.tex	Sun Jun 29 16:58:41 2003 +0000
@@ -90,6 +90,20 @@
 A thread that executes a function after a specified interval has passed.
 \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.  
 
 The design of this module is loosely based on Java's threading model.