Lines Matching refs:id_mutex
140 runtime->interpreters.main->id_mutex = PyThread_allocate_lock(); in _PyRuntimeState_ReInitThreads()
149 if (runtime->interpreters.main->id_mutex == NULL) { in _PyRuntimeState_ReInitThreads()
340 if (interp->id_mutex != NULL) { in _PyInterpreterState_Delete()
341 PyThread_free_lock(interp->id_mutex); in _PyInterpreterState_Delete()
382 if (interp->id_mutex != NULL) { in _PyInterpreterState_DeleteExceptMain()
383 PyThread_free_lock(interp->id_mutex); in _PyInterpreterState_DeleteExceptMain()
462 if (interp->id_mutex != NULL) { in _PyInterpreterState_IDInitref()
465 interp->id_mutex = PyThread_allocate_lock(); in _PyInterpreterState_IDInitref()
466 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDInitref()
479 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDIncref()
482 PyThread_acquire_lock(interp->id_mutex, WAIT_LOCK); in _PyInterpreterState_IDIncref()
484 PyThread_release_lock(interp->id_mutex); in _PyInterpreterState_IDIncref()
491 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDDecref()
495 PyThread_acquire_lock(interp->id_mutex, WAIT_LOCK); in _PyInterpreterState_IDDecref()
499 PyThread_release_lock(interp->id_mutex); in _PyInterpreterState_IDDecref()