Lines Matching refs:storage

33 	void **storage;  member
213 if (p->storage[j]) { in tsrm_shutdown()
215 resource_types_table[j].dtor(p->storage[j]); in tsrm_shutdown()
218 free(p->storage[j]); in tsrm_shutdown()
222 free(p->storage); in tsrm_shutdown()
276 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in tsrm_update_active_threads()
279 p->storage[j] = (void *) (((char*)p) + resource_types_table[j].fast_offset); in tsrm_update_active_threads()
281 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
284 resource_types_table[j].ctor(p->storage[j]); in tsrm_update_active_threads()
397 (*thread_resources_ptr)->storage = NULL; in allocate_new_resource()
399 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
414 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
417 …(*thread_resources_ptr)->storage[i] = (void *) (((char*)(*thread_resources_ptr)) + resource_types_… in allocate_new_resource()
419 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
422 resource_types_table[i].ctor((*thread_resources_ptr)->storage[i]); in allocate_new_resource()
456 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
494 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
509 resource_types_table[i].dtor(thread_resources->storage[i]); in tsrm_free_interpreter_context()
514 free(thread_resources->storage[i]); in tsrm_free_interpreter_context()
517 free(thread_resources->storage); in tsrm_free_interpreter_context()
578 resource_types_table[i].dtor(thread_resources->storage[i]); in ts_free_thread()
583 free(thread_resources->storage[i]); in ts_free_thread()
586 free(thread_resources->storage); in ts_free_thread()
619 if (p->count > j && p->storage[j]) { in ts_free_id()
621 resource_types_table[j].dtor(p->storage[j]); in ts_free_id()
624 free(p->storage[j]); in ts_free_id()
626 p->storage[j] = NULL; in ts_free_id()