Lines Matching refs:storage
30 void **storage; member
182 if (p->storage[j]) { in tsrm_shutdown()
184 resource_types_table[j].dtor(p->storage[j]); in tsrm_shutdown()
186 free(p->storage[j]); in tsrm_shutdown()
189 free(p->storage); in tsrm_shutdown()
255 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in ts_allocate_id()
257 p->storage[j] = (void *) malloc(resource_types_table[j].size); in ts_allocate_id()
259 resource_types_table[j].ctor(p->storage[j]); in ts_allocate_id()
280 (*thread_resources_ptr)->storage = NULL; in allocate_new_resource()
282 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
296 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
299 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
301 resource_types_table[i].ctor((*thread_resources_ptr)->storage[i]); in allocate_new_resource()
344 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
382 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
400 resource_types_table[i].dtor(thread_resources->storage[i]); in tsrm_free_interpreter_context()
404 free(thread_resources->storage[i]); in tsrm_free_interpreter_context()
406 free(thread_resources->storage); in tsrm_free_interpreter_context()
465 resource_types_table[i].dtor(thread_resources->storage[i]); in ts_free_thread()
469 free(thread_resources->storage[i]); in ts_free_thread()
471 free(thread_resources->storage); in ts_free_thread()
507 resource_types_table[i].dtor(thread_resources->storage[i]); in ts_free_worker_threads()
511 free(thread_resources->storage[i]); in ts_free_worker_threads()
513 free(thread_resources->storage); in ts_free_worker_threads()
551 if (p->count > j && p->storage[j]) { in ts_free_id()
553 resource_types_table[j].dtor(p->storage[j]); in ts_free_id()
555 free(p->storage[j]); in ts_free_id()
556 p->storage[j] = NULL; in ts_free_id()