FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-141004: Document `Py_MakePendingCalls` (GH-141137) by miss-islington · Pull Request #141787 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
19 changes: 19 additions & 0 deletions Doc/c-api/init.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,25 @@ pointer and a void pointer argument.
This function now always schedules *func* to be run in the main
interpreter.


.. c:function:: int Py_MakePendingCalls(void)

Execute all pending calls. This is usually executed automatically by the
interpreter.

This function returns ``0`` on success, and returns ``-1`` with an exception
set on failure.

If this is not called in the main thread of the main
interpreter, this function does nothing and returns ``0``.
The caller must hold an :term:`attached thread state`.

.. versionadded:: 3.1

.. versionchanged:: 3.12
This function only runs pending calls in the main interpreter.


.. _profiling:

Profiling and Tracing
Expand Down
Loading

Back | FazBrowse Home | New Git URL