summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2000-09-15 18:19:27 (GMT)
committerSkip Montanaro <skip@pobox.com>2000-09-15 18:19:27 (GMT)
commit682c25a4957f17bb2910af3db4e9352d749f9d48 (patch)
tree40cb6ffc1c029fc3cf99b666fb93f0cee68616b5
parentce88db02303409ae8b19f8aaf5e540c2f99f47c1 (diff)
downloadcpython-682c25a4957f17bb2910af3db4e9352d749f9d48.zip
cpython-682c25a4957f17bb2910af3db4e9352d749f9d48.tar.gz
cpython-682c25a4957f17bb2910af3db4e9352d749f9d48.tar.bz2
RET_SAVE references should be Py_BLOCK_THREADS references
-rw-r--r--Include/ceval.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 0319fd6..3527626 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -52,7 +52,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
{}-surrounded block.
To leave the block in the middle (e.g., with return), you must insert
- a line containing RET_SAVE before the return, e.g.
+ a line containing Py_BLOCK_THREADS before the return, e.g.
if (...premature_exit...) {
Py_BLOCK_THREADS
@@ -70,7 +70,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
Py_UNBLOCK_THREADS
For convenience, that the value of 'errno' is restored across
- Py_END_ALLOW_THREADS and RET_SAVE.
+ Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
Py_END_ALLOW_THREADS!!!