Lines Matching refs:id_mutex
133 interp->id_mutex = NULL; in PyInterpreterState_New()
255 if (interp->id_mutex != NULL) { in PyInterpreterState_Delete()
256 PyThread_free_lock(interp->id_mutex); in PyInterpreterState_Delete()
299 if (interp->id_mutex != NULL) { in _PyInterpreterState_IDInitref()
302 interp->id_mutex = PyThread_allocate_lock(); in _PyInterpreterState_IDInitref()
303 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDInitref()
316 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDIncref()
319 PyThread_acquire_lock(interp->id_mutex, WAIT_LOCK); in _PyInterpreterState_IDIncref()
321 PyThread_release_lock(interp->id_mutex); in _PyInterpreterState_IDIncref()
328 if (interp->id_mutex == NULL) { in _PyInterpreterState_IDDecref()
331 PyThread_acquire_lock(interp->id_mutex, WAIT_LOCK); in _PyInterpreterState_IDDecref()
335 PyThread_release_lock(interp->id_mutex); in _PyInterpreterState_IDDecref()