-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-108724: Add PyMutex and _PyParkingLot APIs #109344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
410840a
gh-108724: Add PyMutex and _PyParkingLot APIs
colesbury 6db39dc
Add news entry
colesbury e624733
Revert change to Modules/_testcapi/parts.h
colesbury 83e60fb
Update Tools/c-analyzer/cpython/ignored.tsv
colesbury 3161e17
Fix _Py_atomic_store_ptr_release on winarm64
colesbury 3ab7110
Support pthread_stubs.h and require threads for lock tests
colesbury 153a0b3
Clean-up Windows includes and ifdefs
colesbury f963fd8
Fix Raspbian build
colesbury 6f49ae7
Fix wasm tests.
colesbury 779a401
Fix indentation
colesbury 3200ef5
Rename PyEvent_TimedWait and _PyMutex_LockTimed
colesbury 880a263
more_waiters -> has_more_waiters
colesbury 717b3c9
Remove _PyMutex_State typedef
colesbury 23b91b0
Update docs
colesbury 279c56a
Include cpython/pyatomic.h via pyatomic.h
colesbury 8d8035c
Use compound initializer in test_lock.c
colesbury 417e754
Apply suggestions from code review
colesbury 3ee97b1
Changes from review:
colesbury 95b0d87
Remove thread-local data in parking_lot.c
colesbury 3d1d2e1
Add doc for NUM_BUCKETS
colesbury e043a8e
Make use of Py_PARK_INTR more explicit in _PySemaphore_PlatformWait
colesbury 6b1d8f9
Statically initialize buckets in parking_lot.c
colesbury 1af0bff
Rename validate_addr to atomic_memcmp
colesbury f2073d0
Add is_unparking to struct wait_entry in parking_lot.c
colesbury 8f1645b
Use callback in _PyParkingLot_Unpark
colesbury a0261c1
Simplify _PySemaphore_Wait.
colesbury 6d4565d
check-c-globals: increase limit for parking_lot.c
colesbury a8ce6be
Changes from review
colesbury File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Tools/c-analyzer/cpython/ignored.tsv
- Loading branch information
commit 83e60fbf29f412c876114e7323ff73a01154ae46
There are no files selected for viewing
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.