mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
RET_SAVE references should be Py_BLOCK_THREADS references
This commit is contained in:
parent
ce88db0230
commit
682c25a495
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
|
||||||
The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
|
The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
|
||||||
{}-surrounded block.
|
{}-surrounded block.
|
||||||
To leave the block in the middle (e.g., with return), you must insert
|
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...) {
|
if (...premature_exit...) {
|
||||||
Py_BLOCK_THREADS
|
Py_BLOCK_THREADS
|
||||||
|
@ -70,7 +70,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
|
||||||
Py_UNBLOCK_THREADS
|
Py_UNBLOCK_THREADS
|
||||||
|
|
||||||
For convenience, that the value of 'errno' is restored across
|
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
|
WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
|
||||||
Py_END_ALLOW_THREADS!!!
|
Py_END_ALLOW_THREADS!!!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue