GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Implement Python Critical Sections from PEP 703 · Issue #111569 · python/cpython Closed Labels 3.13only security fixesonly security fixesOS-wasitopic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementPEP 703 introduces the concept of "Python Critical Sections", which are an abstraction to help replace the GIL with finer grained locking. The key ideas is to replace the GIL with per-object locks and implicitly release these locks in the same places where the GIL would have been released. The mechanism is:
The "public" 1 API consists of four macros: Py_BEGIN_CRITICAL_SECTION(object); Py_END_CRITICAL_SECTION; Py_BEGIN_CRITICAL_SECTION2(object1, object2); Py_END_CRITICAL_SECTION2; These will be no-ops in the default build of CPython. Note that if you need to operate on two objects at once, then you must use the Linked PRs
Footnotes
Activity
MetadataMetadataAssigneesLabels3.13only security fixesonly security fixesOS-wasitopic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |