summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Doc/lib/libdummythreading.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/libdummythreading.tex
parent3a742c699f6806c1145aea5149bf15de15a0afd7 (diff)
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Doc/lib/libdummythreading.tex')
-rw-r--r--sys/src/cmd/python/Doc/lib/libdummythreading.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/src/cmd/python/Doc/lib/libdummythreading.tex b/sys/src/cmd/python/Doc/lib/libdummythreading.tex
new file mode 100644
index 000000000..874f596b8
--- /dev/null
+++ b/sys/src/cmd/python/Doc/lib/libdummythreading.tex
@@ -0,0 +1,22 @@
+\section{\module{dummy_threading} ---
+ Drop-in replacement for the \module{threading} module}
+
+\declaremodule[dummythreading]{standard}{dummy_threading}
+\modulesynopsis{Drop-in replacement for the \refmodule{threading} module.}
+
+This module provides a duplicate interface to the
+\refmodule{threading} 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 threading as _threading
+except ImportError:
+ import dummy_threading as _threading
+\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.