Lines Matching refs:i

167 	int i;  in tsrm_shutdown()  local
170 for (i=0; i<tsrm_tls_table_size; i++) { in tsrm_shutdown()
171 tsrm_tls_entry *p = tsrm_tls_table[i], *next_p; in tsrm_shutdown()
217 int i; in ts_allocate_id() local
244 for (i=0; i<tsrm_tls_table_size; i++) { in ts_allocate_id()
245 tsrm_tls_entry *p = tsrm_tls_table[i]; in ts_allocate_id()
272 int i; in allocate_new_resource() local
287 for (i=0; i<id_count; i++) { in allocate_new_resource()
288 if (resource_types_table[i].done) { in allocate_new_resource()
289 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
292 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
293 if (resource_types_table[i].ctor) { in allocate_new_resource()
294 …resource_types_table[i].ctor((*thread_resources_ptr)->storage[i], &(*thread_resources_ptr)->storag… in allocate_new_resource()
386 int i; in tsrm_free_interpreter_context() local
391 for (i=0; i<thread_resources->count; i++) { in tsrm_free_interpreter_context()
392 if (resource_types_table[i].dtor) { in tsrm_free_interpreter_context()
393 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in tsrm_free_interpreter_context()
396 for (i=0; i<thread_resources->count; i++) { in tsrm_free_interpreter_context()
397 free(thread_resources->storage[i]); in tsrm_free_interpreter_context()
445 int i; in ts_free_thread() local
456 for (i=0; i<thread_resources->count; i++) { in ts_free_thread()
457 if (resource_types_table[i].dtor) { in ts_free_thread()
458 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in ts_free_thread()
461 for (i=0; i<thread_resources->count; i++) { in ts_free_thread()
462 free(thread_resources->storage[i]); in ts_free_thread()
487 int i; in ts_free_worker_threads() local
498 for (i=0; i<thread_resources->count; i++) { in ts_free_worker_threads()
499 if (resource_types_table[i].dtor) { in ts_free_worker_threads()
500 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in ts_free_worker_threads()
503 for (i=0; i<thread_resources->count; i++) { in ts_free_worker_threads()
504 free(thread_resources->storage[i]); in ts_free_worker_threads()
532 int i; in ts_free_id() local
540 for (i=0; i<tsrm_tls_table_size; i++) { in ts_free_id()
541 tsrm_tls_entry *p = tsrm_tls_table[i]; in ts_free_id()