Lines Matching defs:sh_locker
79 DB_LOCKER *sh_locker;
83 __lock_getlocker(env->lk_handle, lid, 0, &sh_locker)) == 0)
84 ret = __lock_vec(env, sh_locker, flags, list, nlist, elistp);
102 __lock_vec(env, sh_locker, flags, list, nlist, elistp)
104 DB_LOCKER *sh_locker;
137 sh_locker, flags, list[i].obj,
141 ret = __lock_inherit_locks(lt, sh_locker, flags);
157 if (sh_locker == NULL)
169 if (F_ISSET(sh_locker, DB_LOCKER_DIRTY))
181 sh_locker->nwrites * sizeof(DBT);
191 for (lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock);
213 sh_locker->nlocks != 0);
214 sh_locker->nlocks--;
216 sh_locker->nwrites--;
240 objlist, sh_locker->nwrites)) != 0)
251 SH_LIST_FOREACH(lp, &sh_locker->heldby,
257 F_SET(sh_locker, DB_LOCKER_INABORT);
259 sh_locker, flags | DB_LOCK_UPGRADE,
314 sh_locker, 0, DB_SET_TXN_NOW);
332 ret = __lock_trade(env, &list[i].lock, sh_locker);
336 if (sh_locker == NULL)
340 lp, &sh_locker->heldby, locker_links, __db_lock)
410 DB_LOCKER *sh_locker;
420 ret = __lock_getlocker_int(env->lk_handle, locker, 0, &sh_locker);
424 sh_locker, flags, obj, lock_mode, 0, lock);
525 __lock_get_internal(lt, sh_locker, flags, obj, lock_mode, timeout, lock)
527 DB_LOCKER *sh_locker;
562 if (sh_locker == NULL) {
638 sh_off = R_OFFSET(<->reginfo, sh_locker);
662 } else if (__lock_is_parent(lt, lp->holder, sh_locker))
803 newl->holder = R_OFFSET(<->reginfo, sh_locker);
814 no_dd = sh_locker->master_locker == INVALID_ROFF &&
816 &sh_locker->child_locker, __db_locker) == NULL &&
817 SH_LIST_FIRST(&sh_locker->heldby, __db_lock) == NULL;
820 &sh_locker->heldby, newl, locker_links, __db_lock);
826 sh_locker->nwrites++;
878 &sh_locker->lk_expire, &sh_locker->tx_expire)) {
880 sh_locker->lk_expire = sh_locker->tx_expire;
893 if (F_ISSET(sh_locker, DB_LOCKER_TIMEOUT))
894 timeout = sh_locker->lk_timeout;
899 __lock_expires(env, &sh_locker->lk_expire, timeout);
901 timespecclear(&sh_locker->lk_expire);
903 if (timespecisset(&sh_locker->tx_expire) &&
905 &sh_locker->lk_expire, &sh_locker->tx_expire)))
906 sh_locker->lk_expire = sh_locker->tx_expire;
907 if (timespecisset(&sh_locker->lk_expire) &&
910 ®ion->next_timeout, &sh_locker->lk_expire, >)))
911 region->next_timeout = sh_locker->lk_expire;
955 timespecclear(&sh_locker->lk_expire);
969 &sh_locker->lk_expire, &sh_locker->tx_expire, ==))
975 timespecclear(&sh_locker->lk_expire);
1010 sh_locker->nlocks++;
1012 sh_locker->nwrites++;
1014 F_SET(sh_locker, DB_LOCKER_DIRTY);
1024 (t_ret = __lock_freelock(lt, newl, sh_locker,
1154 DB_LOCKER *sh_locker;
1178 sh_locker = R_ADDR(<->reginfo, lockp->holder);
1181 sh_locker->nwrites--;
1314 __lock_freelock(lt, lockp, sh_locker, flags)
1317 DB_LOCKER *sh_locker;
1332 sh_locker->nlocks--;
1334 sh_locker->nwrites--;
1544 __lock_is_parent(lt, l_off, sh_locker)
1547 DB_LOCKER *sh_locker;
1551 parent = sh_locker;
1597 __lock_inherit_locks(lt, sh_locker, flags)
1599 DB_LOCKER *sh_locker;
1621 if (sh_locker == NULL) {
1627 if (sh_locker->parent_locker == INVALID_ROFF) {
1631 sh_parent = R_ADDR(<->reginfo, sh_locker->parent_locker);
1640 for (lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock);
1642 lp = SH_LIST_FIRST(&sh_locker->heldby, __db_lock)) {
1659 (void)__lock_freelock(lt, lp, sh_locker, DB_LOCK_FREE);
1681 sh_parent->nlocks += sh_locker->nlocks;
1682 sh_parent->nwrites += sh_locker->nwrites;