summaryrefslogtreecommitdiffstats
path: root/Python/lock.c
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-11-20 13:52:00 (GMT)
committerGitHub <noreply@github.com>2023-11-20 13:52:00 (GMT)
commit3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787 (patch)
treef79786b7e97064b1a71840ac9c1421e87d6adc15 /Python/lock.c
parent1c8f912ebdfdb146cd7dd2d7a3a67d2c5045ddb0 (diff)
downloadcpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.zip
cpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.tar.gz
cpython-3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787.tar.bz2
gh-111863: Rename `Py_NOGIL` to `Py_GIL_DISABLED` (#111864)
Rename Py_NOGIL to Py_GIL_DISABLED
Diffstat (limited to 'Python/lock.c')
-rw-r--r--Python/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/lock.c b/Python/lock.c
index bc43b1a..e9279f0 100644
--- a/Python/lock.c
+++ b/Python/lock.c
@@ -21,7 +21,7 @@ static const _PyTime_t TIME_TO_BE_FAIR_NS = 1000*1000;
// Spin for a bit before parking the thread. This is only enabled for
// `--disable-gil` builds because it is unlikely to be helpful if the GIL is
// enabled.
-#if Py_NOGIL
+#if Py_GIL_DISABLED
static const int MAX_SPIN_COUNT = 40;
#else
static const int MAX_SPIN_COUNT = 0;