Skip to content
Merged
Show file tree
Hide file tree
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 Aug 24, 2023
6db39dc
Add news entry
colesbury Sep 12, 2023
e624733
Revert change to Modules/_testcapi/parts.h
colesbury Sep 12, 2023
83e60fb
Update Tools/c-analyzer/cpython/ignored.tsv
colesbury Sep 12, 2023
3161e17
Fix _Py_atomic_store_ptr_release on winarm64
colesbury Sep 12, 2023
3ab7110
Support pthread_stubs.h and require threads for lock tests
colesbury Sep 12, 2023
153a0b3
Clean-up Windows includes and ifdefs
colesbury Sep 12, 2023
f963fd8
Fix Raspbian build
colesbury Sep 12, 2023
6f49ae7
Fix wasm tests.
colesbury Sep 13, 2023
779a401
Fix indentation
colesbury Sep 13, 2023
3200ef5
Rename PyEvent_TimedWait and _PyMutex_LockTimed
colesbury Sep 14, 2023
880a263
more_waiters -> has_more_waiters
colesbury Sep 14, 2023
717b3c9
Remove _PyMutex_State typedef
colesbury Sep 14, 2023
23b91b0
Update docs
colesbury Sep 14, 2023
279c56a
Include cpython/pyatomic.h via pyatomic.h
colesbury Sep 14, 2023
8d8035c
Use compound initializer in test_lock.c
colesbury Sep 14, 2023
417e754
Apply suggestions from code review
colesbury Sep 14, 2023
3ee97b1
Changes from review:
colesbury Sep 14, 2023
95b0d87
Remove thread-local data in parking_lot.c
colesbury Sep 15, 2023
3d1d2e1
Add doc for NUM_BUCKETS
colesbury Sep 15, 2023
e043a8e
Make use of Py_PARK_INTR more explicit in _PySemaphore_PlatformWait
colesbury Sep 15, 2023
6b1d8f9
Statically initialize buckets in parking_lot.c
colesbury Sep 15, 2023
1af0bff
Rename validate_addr to atomic_memcmp
colesbury Sep 15, 2023
f2073d0
Add is_unparking to struct wait_entry in parking_lot.c
colesbury Sep 15, 2023
8f1645b
Use callback in _PyParkingLot_Unpark
colesbury Sep 15, 2023
a0261c1
Simplify _PySemaphore_Wait.
colesbury Sep 15, 2023
6d4565d
check-c-globals: increase limit for parking_lot.c
colesbury Sep 15, 2023
a8ce6be
Changes from review
colesbury Sep 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Tools/c-analyzer/cpython/ignored.tsv
  • Loading branch information
colesbury committed Sep 12, 2023
commit 83e60fbf29f412c876114e7323ff73a01154ae46
2 changes: 1 addition & 1 deletion Python/parking_lot.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ typedef struct {
static Bucket buckets[NUM_BUCKETS];

#ifdef HAVE_THREAD_LOCAL
_Py_thread_local ThreadData *thread_data = NULL;
static _Py_thread_local ThreadData *thread_data = NULL;
#else
#error "no supported thread-local variable storage classifier"
#endif
Expand Down
4 changes: 4 additions & 0 deletions Tools/c-analyzer/cpython/ignored.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Python/getversion.c - version -
Python/bootstrap_hash.c - _Py_HashSecret_Initialized -
Python/pyhash.c - _Py_HashSecret -

## thread-safe hashtable (internal locks)
Python/parking_lot.c - buckets -


##################################
## state tied to Py_Main()
Expand Down Expand Up @@ -173,6 +176,7 @@ Python/pyfpe.c - PyFPE_counter -

Python/import.c - pkgcontext -
Python/pystate.c - _Py_tss_tstate -
Python/parking_lot.c - thread_data -

##-----------------------
## should be const
Expand Down