Lines Matching defs:lt
63 lock_detect(lt, flags, atype)
64 DB_LOCKTAB *lt;
72 LOCK_PANIC_CHECK(lt);
76 __db_fchk(lt->dbenv, "lock_detect", flags, DB_LOCK_CONFLICT)) != 0)
80 dbenv = lt->dbenv;
83 LOCK_LOCKREGION(lt);
85 UNLOCK_LOCKREGION(lt);
198 DB_LOCKTAB *lt;
205 lt = dbenv->lk_info;
213 LOCK_LOCKREGION(lt);
214 retry: count = lt->region->nlockers;
215 lt->region->need_dd = 0;
216 UNLOCK_LOCKREGION(lt);
254 LOCK_LOCKREGION(lt);
255 if (lt->region->nlockers > count) {
268 for (id = 0, i = 0; i < lt->region->table_size; i++)
269 for (op = SH_TAILQ_FIRST(<->hashtab[i], __db_lockobj);
278 for (i = 0; i < lt->region->table_size; i++) {
279 for (op = SH_TAILQ_FIRST(<->hashtab[i], __db_lockobj);
292 if (__lock_getobj(lt, lp->holder,
318 if (__lock_getobj(lt, lp->holder,
353 if (__lock_getobj(lt,
361 id_array[id].last_lock = LOCK_TO_OFFSET(lt, lp);
373 lt->region->need_dd = 0;
374 UNLOCK_LOCKREGION(lt);
421 DB_LOCKTAB *lt;
425 lt = dbenv->lk_info;
426 LOCK_LOCKREGION(lt);
430 __lock_getobj(lt, info->id, NULL, DB_LOCK_LOCKER, &lockerp)) != 0)
441 HASHREMOVE_EL(lt->hashtab, __db_lockobj,
442 links, lockerp, lt->region->table_size, __lock_lhash);
443 SH_TAILQ_INSERT_HEAD(<->region->free_objs,
445 lt->region->nlockers--;
447 } else if (LOCK_TO_OFFSET(lt, lockp) != info->last_lock ||
453 lt->region->ndeadlocks++;
457 (void)__db_mutex_unlock(&lockp->mutex, lt->reginfo.fd);
461 out: UNLOCK_LOCKREGION(lt);