diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2023-01-15 15:09:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 15:09:26 (GMT) |
commit | f6307d44167e9c110a1db442f7a33deb365e89a8 (patch) | |
tree | 2966452677fbc35a33b68b6e78f38a07350603e4 /Python | |
parent | 206f05a46b426eb374f724f8e7cd42f2f9643bb8 (diff) | |
download | cpython-f6307d44167e9c110a1db442f7a33deb365e89a8.zip cpython-f6307d44167e9c110a1db442f7a33deb365e89a8.tar.gz cpython-f6307d44167e9c110a1db442f7a33deb365e89a8.tar.bz2 |
GH-100892: consolidate `HEAD_LOCK/HEAD_UNLOCK` macros (#100953)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 5 | ||||
-rw-r--r-- | Python/pystate.c | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7deee76..ecbe2f9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -97,11 +97,6 @@ #define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL) #endif -#define HEAD_LOCK(runtime) \ - PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK) -#define HEAD_UNLOCK(runtime) \ - PyThread_release_lock((runtime)->interpreters.mutex) - /* Forward declarations */ static PyObject *trace_call_function( PyThreadState *tstate, PyObject *callable, PyObject **stack, diff --git a/Python/pystate.c b/Python/pystate.c index f2f571f..bf9b8db 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -231,10 +231,6 @@ _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime) } #endif -#define HEAD_LOCK(runtime) \ - PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK) -#define HEAD_UNLOCK(runtime) \ - PyThread_release_lock((runtime)->interpreters.mutex) /* Forward declaration */ static void _PyGILState_NoteThreadState( |