cpython/Modules/_ctypes
Nathan Goldbaum 89c220b93c
gh-133296: Publicly expose critical section API that accepts PyMutex (gh-135899)
This makes the following APIs public:

* `Py_BEGIN_CRITICAL_SECTION_MUTEX(mutex),`
* `Py_BEGIN_CRITICAL_SECTION2_MUTEX(mutex1, mutex2)`
* `void PyCriticalSection_BeginMutex(PyCriticalSection *c, PyMutex *mutex)`
* `void PyCriticalSection2_BeginMutex(PyCriticalSection2 *c, PyMutex *mutex1, PyMutex *mutex2)`

The macros are identical to the corresponding `Py_BEGIN_CRITICAL_SECTION` and
`Py_BEGIN_CRITICAL_SECTION2` macros (e.g., they include braces), but they
accept a `PyMutex` instead of an object.

The new macros are still paired with the existing END macros
(`Py_END_CRITICAL_SECTION`, `Py_END_CRITICAL_SECTION2`).
2025-07-21 17:25:43 -04:00
..
clinic gh-100926: use explicit stginfo lock for pointer cache (#133867) 2025-05-11 08:24:20 +00:00
_ctypes.c gh-134637: Fix performance regression in calling ctypes function pointer in free threading. (#134702) 2025-05-26 18:26:40 +00:00
_ctypes_test.c gh-125206: Make _Py_FFI_SUPPORT_C_COMPLEX private (GH-135932) 2025-06-26 11:48:37 +02:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
_ctypes_test_generated.c.h gh-128715: Expose ctypes.CField, with info attributes (GH-128950) 2025-03-24 14:18:34 +01:00
callbacks.c gh-134486: Fix missing alloca() symbol in _ctypes on NetBSD (#134487) 2025-05-23 13:11:04 +02:00
callproc.c gh-134486: Fix missing alloca() symbol in _ctypes on NetBSD (#134487) 2025-05-23 13:11:04 +02:00
cfield.c gh-125206: Make _Py_FFI_SUPPORT_C_COMPLEX private (GH-135932) 2025-06-26 11:48:37 +02:00
ctypes.h gh-133296: Publicly expose critical section API that accepts PyMutex (gh-135899) 2025-07-21 17:25:43 -04:00
malloc_closure.c gh-127945: add locking to malloc closure in free-threading (#131662) 2025-03-25 16:48:46 +05:30
stgdict.c Fix typo: "occured" =>"occurred" (#134928) 2025-07-19 11:48:04 +03:00