Lines Matching refs:storage

33 	void **storage;  member
170 resource_types_table[i].dtor(thread_resources->storage[i]); in ts_free_resources()
174 free(thread_resources->storage[i]); in ts_free_resources()
179 free(thread_resources->storage); in ts_free_resources()
206 free(p->storage); in tsrm_shutdown()
257 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in tsrm_update_active_threads()
260 p->storage[j] = (void *) (((char*)p) + resource_types_table[j].fast_offset); in tsrm_update_active_threads()
262 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
265 resource_types_table[j].ctor(p->storage[j]); in tsrm_update_active_threads()
382 (*thread_resources_ptr)->storage = NULL; in allocate_new_resource()
384 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
398 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
401 …(*thread_resources_ptr)->storage[i] = (void *) (((char*)(*thread_resources_ptr)) + resource_types_… in allocate_new_resource()
403 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
406 resource_types_table[i].ctor((*thread_resources_ptr)->storage[i]); in allocate_new_resource()
437 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
505 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
557 if (p->count > rsrc_id && p->storage[rsrc_id]) { in ts_free_id()
560 resource_types_table[rsrc_id].dtor(p->storage[rsrc_id]); in ts_free_id()
563 free(p->storage[rsrc_id]); in ts_free_id()
566 p->storage[rsrc_id] = NULL; in ts_free_id()