Lines Matching defs:ip
35 DB_THREAD_INFO *ip;
56 ENV_ENTER(env, ip);
80 err: ENV_LEAVE(env, ip);
164 DB_THREAD_INFO *ip, *np;
178 ip = SH_TAILQ_FIRST(&htab[i], __db_thread_info);
179 for (; ip != NULL; ip = np) {
180 np = SH_TAILQ_NEXT(ip,
182 __env_alloc_free(infop, ip);
204 DB_THREAD_INFO *ip;
221 SH_TAILQ_FOREACH(ip, &htab[i], dbth_links, __db_thread_info) {
222 if (ip->dbth_state == THREAD_SLOT_NOT_IN_USE ||
223 (ip->dbth_state == THREAD_OUT &&
227 dbenv, ip->dbth_pid, ip->dbth_tid, 0))
229 if (ip->dbth_state == THREAD_BLOCKED) {
230 ip->dbth_state = THREAD_BLOCKED_DEAD;
234 if (ip->dbth_state == THREAD_OUT) {
235 ip->dbth_state = THREAD_SLOT_NOT_IN_USE;
240 ip->dbth_pid, ip->dbth_tid));
247 SH_TAILQ_FOREACH(ip, &htab[i], dbth_links, __db_thread_info)
248 if (ip->dbth_state == THREAD_BLOCKED_DEAD &&
249 (ret = __memp_unpin_buffers(env, ip)) != 0)
264 DB_THREAD_INFO *ip;
269 SH_TAILQ_FOREACH(ip, &htab[i], dbth_links, __db_thread_info)
270 if (ip->dbth_state == THREAD_BLOCKED_DEAD)
271 ip->dbth_state = THREAD_SLOT_NOT_IN_USE;
291 DB_THREAD_INFO *ip;
317 SH_TAILQ_FOREACH(ip, &htab[indx], dbth_links, __db_thread_info) {
319 if (id.pid == ip->dbth_pid && id.tid == ip->dbth_tid)
322 if (memcmp(&id.pid, &ip->dbth_pid, sizeof(id.pid)) != 0)
324 if (memcmp(&id.tid, &ip->dbth_tid, sizeof(id.tid)) != 0)
333 DB_ASSERT(env, ip != NULL && ip->dbth_state != THREAD_OUT);
340 if (ip == NULL) {
354 ip, &htab[indx], dbth_links, __db_thread_info)
355 if (ip->dbth_state == THREAD_SLOT_NOT_IN_USE ||
356 (ip->dbth_state == THREAD_OUT &&
358 dbenv, ip->dbth_pid, ip->dbth_tid, 0)))
361 if (ip != NULL) {
362 DB_ASSERT(env, ip->dbth_pincount == 0);
369 sizeof(DB_THREAD_INFO), &ip)) == 0) {
370 memset(ip, 0, sizeof(*ip));
378 &htab[indx], ip, dbth_links, __db_thread_info);
379 ip->dbth_pincount = 0;
380 ip->dbth_pinmax = PINMAX;
381 ip->dbth_pinlist = R_OFFSET(infop, ip->dbth_pinarray);
383 init: ip->dbth_pid = id.pid;
384 ip->dbth_tid = id.tid;
385 ip->dbth_state = state;
389 ip->dbth_state = state;
390 *ipp = ip;