We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
take_gil
1 parent 1c5fc02 commit fed294cCopy full SHA for fed294c
Python/ceval_gil.c
@@ -307,10 +307,6 @@ take_gil(PyThreadState *tstate)
307
308
MUTEX_LOCK(gil->mutex);
309
310
- if (!_Py_atomic_load_int_relaxed(&gil->locked)) {
311
- goto _ready;
312
- }
313
-
314
int drop_requested = 0;
315
while (_Py_atomic_load_int_relaxed(&gil->locked)) {
316
unsigned long saved_switchnum = gil->switch_number;
@@ -345,7 +341,6 @@ take_gil(PyThreadState *tstate)
345
341
}
346
342
347
343
348
-_ready:
349
344
#ifdef FORCE_SWITCHING
350
/* This mutex must be taken before modifying gil->last_holder:
351
see drop_gil(). */
0 commit comments