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()
208 free(p->storage); in tsrm_shutdown()
261 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in tsrm_update_active_threads()
264 p->storage[j] = (void *) (((char*)p) + resource_types_table[j].fast_offset); in tsrm_update_active_threads()
266 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
269 resource_types_table[j].ctor(p->storage[j]); in tsrm_update_active_threads()
388 (*thread_resources_ptr)->storage = NULL; in allocate_new_resource()
390 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
404 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
407 …(*thread_resources_ptr)->storage[i] = (void *) (((char*)(*thread_resources_ptr)) + resource_types_… in allocate_new_resource()
409 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
412 resource_types_table[i].ctor((*thread_resources_ptr)->storage[i]); in allocate_new_resource()
443 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
511 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
564 if (p->count > j && p->storage[j]) { in ts_free_id()
567 resource_types_table[j].dtor(p->storage[j]); in ts_free_id()
570 free(p->storage[j]); in ts_free_id()
573 p->storage[j] = NULL; in ts_free_id()