Lines Matching refs:storage

26 	void **storage;  member
178 if (p->storage[j]) { in tsrm_shutdown()
180 resource_types_table[j].dtor(p->storage[j], &p->storage); in tsrm_shutdown()
182 free(p->storage[j]); in tsrm_shutdown()
185 free(p->storage); in tsrm_shutdown()
251 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in ts_allocate_id()
253 p->storage[j] = (void *) malloc(resource_types_table[j].size); in ts_allocate_id()
255 resource_types_table[j].ctor(p->storage[j], &p->storage); in ts_allocate_id()
276 (*thread_resources_ptr)->storage = (void **) malloc(sizeof(void *)*id_count); in allocate_new_resource()
285 tsrm_new_thread_begin_handler(thread_id, &((*thread_resources_ptr)->storage)); in allocate_new_resource()
289 (*thread_resources_ptr)->storage[i] = NULL; in allocate_new_resource()
292 (*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size); in allocate_new_resource()
294 …resource_types_table[i].ctor((*thread_resources_ptr)->storage[i], &(*thread_resources_ptr)->storag… in allocate_new_resource()
300 tsrm_new_thread_end_handler(thread_id, &((*thread_resources_ptr)->storage)); in allocate_new_resource()
337 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
375 TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count); in ts_resource_ex()
393 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in tsrm_free_interpreter_context()
397 free(thread_resources->storage[i]); in tsrm_free_interpreter_context()
399 free(thread_resources->storage); in tsrm_free_interpreter_context()
458 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in ts_free_thread()
462 free(thread_resources->storage[i]); in ts_free_thread()
464 free(thread_resources->storage); in ts_free_thread()
500 resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage); in ts_free_worker_threads()
504 free(thread_resources->storage[i]); in ts_free_worker_threads()
506 free(thread_resources->storage); in ts_free_worker_threads()
544 if (p->count > j && p->storage[j]) { in ts_free_id()
546 resource_types_table[j].dtor(p->storage[j], &p->storage); in ts_free_id()
548 free(p->storage[j]); in ts_free_id()
549 p->storage[j] = NULL; in ts_free_id()