Skip to content

Commit

Permalink
nogil: fix MemoryView reference counting
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Apr 20, 2022
1 parent 2fed23e commit f5740f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Utility/MemoryView_C.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef struct {
// libatomic + autotools-like distutils support? Such a pain...
#if CYTHON_COMPILING_IN_NOGIL
#define __pyx_atomic_incr_aligned(value, lock) _Py_atomic_add_int(value, 1)
#define __pyx_atomic_decr_aligned(value, lock) _Py_atomic_add_int(value, 1)
#define __pyx_atomic_decr_aligned(value, lock) _Py_atomic_add_int(value, -1)
#undef CYTHON_ATOMICS
#define CYTHON_ATOMICS 1
#ifdef __PYX_DEBUG_ATOMICS
Expand Down

0 comments on commit f5740f0

Please sign in to comment.