summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2023-01-15 15:09:26 (GMT)
committerGitHub <noreply@github.com>2023-01-15 15:09:26 (GMT)
commitf6307d44167e9c110a1db442f7a33deb365e89a8 (patch)
tree2966452677fbc35a33b68b6e78f38a07350603e4 /Modules
parent206f05a46b426eb374f724f8e7cd42f2f9643bb8 (diff)
downloadcpython-f6307d44167e9c110a1db442f7a33deb365e89a8.zip
cpython-f6307d44167e9c110a1db442f7a33deb365e89a8.tar.gz
cpython-f6307d44167e9c110a1db442f7a33deb365e89a8.tar.bz2
GH-100892: consolidate `HEAD_LOCK/HEAD_UNLOCK` macros (#100953)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_threadmodule.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 4fbf0e5..80f467a 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -839,11 +839,6 @@ local_traverse(localobject *self, visitproc visit, void *arg)
return 0;
}
-#define HEAD_LOCK(runtime) \
- PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK)
-#define HEAD_UNLOCK(runtime) \
- PyThread_release_lock((runtime)->interpreters.mutex)
-
static int
local_clear(localobject *self)
{