We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1697cb5 commit acc719eCopy full SHA for acc719e
Doc/c-api/init.rst
@@ -1854,6 +1854,19 @@ pointer and a void pointer argument.
1854
This function now always schedules *func* to be run in the main
1855
interpreter.
1856
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
1870
.. _profiling:
1871
1872
Profiling and Tracing
0 commit comments