| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2019,6 +2019,25 @@ pointer and a void pointer argument. | |||
| 2019 | 2019 | This function now always schedules *func* to be run in the main | |
| 2020 | 2020 | interpreter. | |
| 2021 | 2021 | ||
| 2022 | + | ||
| 2023 | + .. c:function:: int Py_MakePendingCalls(void) | ||
| 2024 | + | ||
| 2025 | + Execute all pending calls. This is usually executed automatically by the | ||
| 2026 | + interpreter. | ||
| 2027 | + | ||
| 2028 | + This function returns ``0`` on success, and returns ``-1`` with an exception | ||
| 2029 | + set on failure. | ||
| 2030 | + | ||
| 2031 | + If this is not called in the main thread of the main | ||
| 2032 | + interpreter, this function does nothing and returns ``0``. | ||
| 2033 | + The caller must hold an :term:`attached thread state`. | ||
| 2034 | + | ||
| 2035 | + .. versionadded:: 3.1 | ||
| 2036 | + | ||
| 2037 | + .. versionchanged:: 3.12 | ||
| 2038 | + This function only runs pending calls in the main interpreter. | ||
| 2039 | + | ||
| 2040 | + | ||
| 2022 | 2041 | .. _profiling: | |
| 2023 | 2042 | ||
| 2024 | 2043 | Profiling and Tracing | |
| Back | FazBrowse Home | New Git URL |
0 commit comments