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

[3.13] gh-119344: Make critical section API public (GH-119353) by colesbury · Pull Request #120856 · python/cpython · GitHub

/ cpython Public

[3.13] gh-119344: Make critical section API public (GH-119353) - #120856

Merged
colesbury merged 1 commit into
python:3.13from
colesbury:backport-8f17d69-3.13
Jun 21, 2024
Merged

colesbury merged 1 commit into
python:3.13from
colesbury:backport-8f17d69-3.13

Conversation

colesbury commented Jun 21, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

This makes the following macros public as part of the non-limited C-API for locking a single object or two objects at once.

  • Py_BEGIN_CRITICAL_SECTION(op) / Py_END_CRITICAL_SECTION()
  • Py_BEGIN_CRITICAL_SECTION2(a, b) / Py_END_CRITICAL_SECTION2()

The supporting functions and structs used by the macros are also exposed for cases where C macros are not available.
(cherry picked from commit 8f17d69)


📚 Documentation preview 📚: https://cpython-previews--120856.org.readthedocs.build/

…9353)

This makes the following macros public as part of the non-limited C-API for
locking a single object or two objects at once.

* `Py_BEGIN_CRITICAL_SECTION(op)` / `Py_END_CRITICAL_SECTION()`
* `Py_BEGIN_CRITICAL_SECTION2(a, b)` / `Py_END_CRITICAL_SECTION2()`

The supporting functions and structs used by the macros are also exposed for
cases where C macros are not available.
(cherry picked from commit 8f17d69)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL