summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-06-01 21:39:46 (GMT)
committerGitHub <noreply@github.com>2019-06-01 21:39:46 (GMT)
commit6a150bcaeb190d1731b38ab9c7a5d1a352847ddc (patch)
tree687d690cdcb19d4f30806b628dcdee37a4d61a13 /Modules/_testcapimodule.c
parent218e47b61862470477922e9aba1a23fd3dab18ae (diff)
downloadcpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.zip
cpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.tar.gz
cpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.tar.bz2
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index b42f41c..bf20e81 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2677,6 +2677,7 @@ pending_threadfunc(PyObject *self, PyObject *arg)
Py_INCREF(callable);
Py_BEGIN_ALLOW_THREADS
+ /* XXX Use the internal _Py_AddPendingCall(). */
r = Py_AddPendingCall(&_pending_callback, callable);
Py_END_ALLOW_THREADS