diff options
author | Guido van Rossum <guido@python.org> | 2002-12-30 22:34:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-12-30 22:34:10 (GMT) |
commit | 2969233f9af1479abb25814e5f4552e71b163bbd (patch) | |
tree | ca4e375f002302bde201887f0fd2bc17c4971b03 | |
parent | ad50ca91a99e9a16a583fb13799c79f23067ef30 (diff) | |
download | cpython-2969233f9af1479abb25814e5f4552e71b163bbd.zip cpython-2969233f9af1479abb25814e5f4552e71b163bbd.tar.gz cpython-2969233f9af1479abb25814e5f4552e71b163bbd.tar.bz2 |
Add dummy_thread[ing] sections and reference these from libthread[ing].
-rw-r--r-- | Doc/lib/lib.tex | 2 | ||||
-rw-r--r-- | Doc/lib/libthread.tex | 4 | ||||
-rw-r--r-- | Doc/lib/libthreading.tex | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex index c7a236a..dc8059a 100644 --- a/Doc/lib/lib.tex +++ b/Doc/lib/lib.tex @@ -164,6 +164,8 @@ and how to embed it in other applications. \input{libselect} \input{libthread} \input{libthreading} +\input{libdummythread} +\input{libdummythreading} \input{libqueue} \input{libmmap} \input{libanydbm} diff --git a/Doc/lib/libthread.tex b/Doc/lib/libthread.tex index d302958..6dfd875 100644 --- a/Doc/lib/libthread.tex +++ b/Doc/lib/libthread.tex @@ -17,7 +17,9 @@ semaphores}) are provided. The module is optional. It is supported on Windows, Linux, SGI IRIX, Solaris 2.x, as well as on systems that have a \POSIX{} thread -(a.k.a. ``pthread'') implementation. +(a.k.a. ``pthread'') implementation. For systems lacking the \module{thread} +module, the \refmodule{dummy_thread} module is available. It duplicates this +module's interface and can be used as a drop-in replacement. \index{pthreads} \indexii{threads}{\POSIX} diff --git a/Doc/lib/libthreading.tex b/Doc/lib/libthreading.tex index a152a4d..4961829 100644 --- a/Doc/lib/libthreading.tex +++ b/Doc/lib/libthreading.tex @@ -8,6 +8,9 @@ This module constructs higher-level threading interfaces on top of the lower level \refmodule{thread} module. +The \refmodule{dummy_threading} module is provided for situations where +\module{threading} cannot be used because \module{thread} is missing. + This module is safe for use with \samp{from threading import *}. It defines the following functions and objects: |