Lines Matching refs:di_lock
38 PyThread_type_lock di_lock; member
79 dp->di_lock = NULL; in newdbhashobject()
89 dp->di_lock = PyThread_allocate_lock(); in newdbhashobject()
90 if (dp->di_lock == NULL) { in newdbhashobject()
129 dp->di_lock = NULL; in newdbbtobject()
139 dp->di_lock = PyThread_allocate_lock(); in newdbbtobject()
140 if (dp->di_lock == NULL) { in newdbbtobject()
188 dp->di_lock = NULL; in newdbrnobject()
198 dp->di_lock = PyThread_allocate_lock(); in newdbrnobject()
199 if (dp->di_lock == NULL) { in newdbrnobject()
213 if (dp->di_lock) { in bsddb_dealloc()
214 PyThread_acquire_lock(dp->di_lock, 0); in bsddb_dealloc()
215 PyThread_release_lock(dp->di_lock); in bsddb_dealloc()
216 PyThread_free_lock(dp->di_lock); in bsddb_dealloc()
217 dp->di_lock = NULL; in bsddb_dealloc()
235 Py_BEGIN_ALLOW_THREADS PyThread_acquire_lock(_dp->di_lock,1);
237 PyThread_release_lock(_dp->di_lock); Py_END_ALLOW_THREADS