Skip to content

Commit acc719e

Browse files
committed
Document Py_MakePendingCalls()
1 parent 1697cb5 commit acc719e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/c-api/init.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,19 @@ pointer and a void pointer argument.
18541854
This function now always schedules *func* to be run in the main
18551855
interpreter.
18561856
1857+
1858+
.. c:function:: int Py_MakePendingCalls(void)
1859+
1860+
Execute all pending calls. This is usually executed automatically by the
1861+
interpreter. If this is not called in the main thread of the main
1862+
interpreter, this function does nothing and returns ``0``.
1863+
1864+
This function returns ``0`` on success, and returns ``-1`` with an exception
1865+
set on failure.
1866+
1867+
The caller must hold an :term:`attached thread state`.
1868+
1869+
18571870
.. _profiling:
18581871
18591872
Profiling and Tracing

0 commit comments

Comments
 (0)