Lines Matching refs:storage
33 void **storage; member
190 if (p->storage[j]) { in tsrm_shutdown()
194 resource_types_table[j].dtor(p->storage[j]); in tsrm_shutdown()
198 free(p->storage[j]); in tsrm_shutdown()
204 free(p->storage); in tsrm_shutdown()
256 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in tsrm_update_active_threads()
259 p->storage[j] = (void *) (((char*)p) + resource_types_table[j].fast_offset); in tsrm_update_active_threads()
261 p->storage[j] = (void *) malloc(resource_types_table[j].size); in tsrm_update_active_threads()
264 resource_types_table[j].ctor(p->storage[j]); in tsrm_update_active_threads()
377 (*thread_resources_ptr)->storage = NULL; in allocate_new_resource()
379 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
394 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
397 …(*thread_resources_ptr)->storage[i] = (void *) (((char*)(*thread_resources_ptr)) + resource_types_… in allocate_new_resource()
399 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
402 resource_types_table[i].ctor((*thread_resources_ptr)->storage[i]); in allocate_new_resource()
436 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
474 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
497 resource_types_table[i].dtor(thread_resources->storage[i]); in ts_free_thread()
502 free(thread_resources->storage[i]); in ts_free_thread()
505 free(thread_resources->storage); in ts_free_thread()
538 if (p->count > j && p->storage[j]) { in ts_free_id()
541 resource_types_table[j].dtor(p->storage[j]); in ts_free_id()
544 free(p->storage[j]); in ts_free_id()
547 p->storage[j] = NULL; in ts_free_id()