Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e30ac57

Browse files
committed
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'.
1 parent efafcea commit e30ac57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/api/api.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4598,14 +4598,14 @@ \section{Thread State and the Global Interpreter Lock
45984598
disabled at compile time.
45994599
\end{csimplemacrodesc}
46004600

4601-
\begin{csimplemacrodesc}{Py_BEGIN_BLOCK_THREADS}
4601+
\begin{csimplemacrodesc}{Py_BLOCK_THREADS}
46024602
This macro expands to \samp{PyEval_RestoreThread(_save);} i.e. it
46034603
is equivalent to \code{Py_END_ALLOW_THREADS} without the closing
46044604
brace. It is a no-op when thread support is disabled at compile
46054605
time.
46064606
\end{csimplemacrodesc}
46074607

4608-
\begin{csimplemacrodesc}{Py_BEGIN_UNBLOCK_THREADS}
4608+
\begin{csimplemacrodesc}{Py_UNBLOCK_THREADS}
46094609
This macro expands to \samp{_save = PyEval_SaveThread();} i.e. it is
46104610
equivalent to \code{Py_BEGIN_ALLOW_THREADS} without the opening brace
46114611
and variable declaration. It is a no-op when thread support is

0 commit comments

Comments
 (0)