diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-03-15 21:47:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 21:47:51 (GMT) |
commit | 842a2f07f2f08a935ef470bfdaeef40f87490cfc (patch) | |
tree | 33d887ff84afb3190bf53627ebb53f586cd086b9 /Include | |
parent | 7c4fcb6b05792e94dd5f8aca032f01314248f5ac (diff) | |
download | cpython-842a2f07f2f08a935ef470bfdaeef40f87490cfc.zip cpython-842a2f07f2f08a935ef470bfdaeef40f87490cfc.tar.gz cpython-842a2f07f2f08a935ef470bfdaeef40f87490cfc.tar.bz2 |
bpo-33608: Deal with pending calls relative to runtime shutdown. (gh-12246)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_ceval.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index c8e09ba..2ead96c 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -11,7 +11,10 @@ extern "C" { #include "pycore_atomic.h" #include "pythread.h" +PyAPI_FUNC(void) _Py_FinishPendingCalls(void); + struct _pending_calls { + int finishing; PyThread_type_lock lock; /* Request for running pending calls. */ _Py_atomic_int calls_to_do; |