Searched refs:tables_lock (Results 1 – 2 of 2) sorted by relevance
38 static PyThread_type_lock tables_lock; variable39 # define TABLES_LOCK() PyThread_acquire_lock(tables_lock, 1)40 # define TABLES_UNLOCK() PyThread_release_lock(tables_lock)962 if (tables_lock == NULL) { in tracemalloc_init()963 tables_lock = PyThread_allocate_lock(); in tracemalloc_init()964 if (tables_lock == NULL) { in tracemalloc_init()1029 if (tables_lock != NULL) { in tracemalloc_deinit()1030 PyThread_free_lock(tables_lock); in tracemalloc_deinit()1031 tables_lock = NULL; in tracemalloc_deinit()
102 tables_lock