diff options
author | Sam Gross <colesbury@gmail.com> | 2024-06-20 15:29:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 15:29:08 (GMT) |
commit | 3af7263037de1d0ef63b070fc7bfc2cf042eaebe (patch) | |
tree | 3503239cf4a4ca885e53f9e943530aa9bf93ac5c /Include/object.h | |
parent | e8e151d4715839f785ff853c77594d7302b40266 (diff) | |
download | cpython-3af7263037de1d0ef63b070fc7bfc2cf042eaebe.zip cpython-3af7263037de1d0ef63b070fc7bfc2cf042eaebe.tar.gz cpython-3af7263037de1d0ef63b070fc7bfc2cf042eaebe.tar.bz2 |
gh-117511: Make PyMutex public in the non-limited API (#117731)
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/object.h b/Include/object.h index ed39e7d..a1e5b33 100644 --- a/Include/object.h +++ b/Include/object.h @@ -137,17 +137,13 @@ struct _object { // fields have been merged. #define _Py_UNOWNED_TID 0 -// NOTE: In non-free-threaded builds, `struct _PyMutex` is defined in -// pycore_lock.h. See pycore_lock.h for more details. -struct _PyMutex { uint8_t v; }; - struct _object { // ob_tid stores the thread id (or zero). It is also used by the GC and the // trashcan mechanism as a linked list pointer and by the GC to store the // computed "gc_refs" refcount. uintptr_t ob_tid; uint16_t _padding; - struct _PyMutex ob_mutex; // per-object lock + PyMutex ob_mutex; // per-object lock uint8_t ob_gc_bits; // gc-related state uint32_t ob_ref_local; // local reference count Py_ssize_t ob_ref_shared; // shared (atomic) reference count |