Lines Matching refs:j
174 int j; in tsrm_shutdown() local
177 for (j=0; j<p->count; j++) { in tsrm_shutdown()
178 if (p->storage[j]) { in tsrm_shutdown()
179 if (resource_types_table && !resource_types_table[j].done && resource_types_table[j].dtor) { in tsrm_shutdown()
180 resource_types_table[j].dtor(p->storage[j], &p->storage); in tsrm_shutdown()
182 free(p->storage[j]); in tsrm_shutdown()
249 int j; in ts_allocate_id() local
252 for (j=p->count; j<id_count; j++) { in ts_allocate_id()
253 p->storage[j] = (void *) malloc(resource_types_table[j].size); in ts_allocate_id()
254 if (resource_types_table[j].ctor) { in ts_allocate_id()
255 resource_types_table[j].ctor(p->storage[j], &p->storage); in ts_allocate_id()
533 int j = TSRM_UNSHUFFLE_RSRC_ID(id); in ts_free_id() local
544 if (p->count > j && p->storage[j]) { in ts_free_id()
545 if (resource_types_table && resource_types_table[j].dtor) { in ts_free_id()
546 resource_types_table[j].dtor(p->storage[j], &p->storage); in ts_free_id()
548 free(p->storage[j]); in ts_free_id()
549 p->storage[j] = NULL; in ts_free_id()
555 resource_types_table[j].done = 1; in ts_free_id()