summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Doc/lib/libdummythread.tex
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
commit458120dd40db6b4df55a4e96b650e16798ef06a0 (patch)
tree8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/src/cmd/python/Doc/lib/libdummythread.tex
parent3a742c699f6806c1145aea5149bf15de15a0afd7 (diff)
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Doc/lib/libdummythread.tex')
-rw-r--r--sys/src/cmd/python/Doc/lib/libdummythread.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/src/cmd/python/Doc/lib/libdummythread.tex b/sys/src/cmd/python/Doc/lib/libdummythread.tex
new file mode 100644
index 000000000..f6b4c5663
--- /dev/null
+++ b/sys/src/cmd/python/Doc/lib/libdummythread.tex
@@ -0,0 +1,22 @@
+\section{\module{dummy_thread} ---
+ Drop-in replacement for the \module{thread} module}
+
+\declaremodule[dummythread]{standard}{dummy_thread}
+\modulesynopsis{Drop-in replacement for the \refmodule{thread} module.}
+
+This module provides a duplicate interface to the \refmodule{thread}
+module. It is meant to be imported when the \refmodule{thread} module
+is not provided on a platform.
+
+Suggested usage is:
+
+\begin{verbatim}
+try:
+ import thread as _thread
+except ImportError:
+ import dummy_thread as _thread
+\end{verbatim}
+
+Be careful to not use this module where deadlock might occur from a thread
+being created that blocks waiting for another thread to be created. This
+often occurs with blocking I/O.