File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1964,6 +1964,25 @@ pointer and a void pointer argument.
19641964 This function now always schedules *func* to be run in the main
19651965 interpreter.
19661966
1967+
1968+ .. c:function:: int Py_MakePendingCalls(void)
1969+
1970+ Execute all pending calls. This is usually executed automatically by the
1971+ interpreter.
1972+
1973+ This function returns ``0`` on success, and returns ``-1`` with an exception
1974+ set on failure.
1975+
1976+ If this is not called in the main thread of the main
1977+ interpreter, this function does nothing and returns ``0``.
1978+ The caller must hold the :term:`GIL`.
1979+
1980+ .. versionadded:: 3.1
1981+
1982+ .. versionchanged:: 3.12
1983+ This function only runs pending calls in the main interpreter.
1984+
1985+
19671986.. _profiling:
19681987
19691988Profiling and Tracing
You can’t perform that action at this time.
0 commit comments