summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-07-09 14:34:16 (GMT)
committerThomas Wouters <thomas@python.org>2001-07-09 14:34:16 (GMT)
commit42af3cedd9e072d6a6d2dd0cb17b38d00e19f397 (patch)
tree76b32a0fa9bf6852d4fed7b8da85d10c01420817
parent4c633be895cb4c63820b77173be93dd4bc60a9de (diff)
downloadcpython-42af3cedd9e072d6a6d2dd0cb17b38d00e19f397.zip
cpython-42af3cedd9e072d6a6d2dd0cb17b38d00e19f397.tar.gz
cpython-42af3cedd9e072d6a6d2dd0cb17b38d00e19f397.tar.bz2
Fix for SF bug #436525, reported by Greg Kochanski:
The block/unblock thread macros are called 'Py_BLOCK_THREADS' and 'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and 'Py_BEGIN_UNBLOCK_THREADS'.
-rw-r--r--Doc/api/api.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index 5cc3dfd..fab6ae0 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -4539,14 +4539,14 @@ discussion of this macro. It is a no-op when thread support is
disabled at compile time.
\end{csimplemacrodesc}
-\begin{csimplemacrodesc}{Py_BEGIN_BLOCK_THREADS}
+\begin{csimplemacrodesc}{Py_BLOCK_THREADS}
This macro expands to \samp{PyEval_RestoreThread(_save);} i.e. it
is equivalent to \code{Py_END_ALLOW_THREADS} without the closing
brace. It is a no-op when thread support is disabled at compile
time.
\end{csimplemacrodesc}
-\begin{csimplemacrodesc}{Py_BEGIN_UNBLOCK_THREADS}
+\begin{csimplemacrodesc}{Py_UNBLOCK_THREADS}
This macro expands to \samp{_save = PyEval_SaveThread();} i.e. it is
equivalent to \code{Py_BEGIN_ALLOW_THREADS} without the opening brace
and variable declaration. It is a no-op when thread support is