Lines Matching refs:thread_resources_ptr
391 static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_T thread_id) in allocate_new_resource() argument
396 …(*thread_resources_ptr) = (tsrm_tls_entry *) malloc(TSRM_ALIGNED_SIZE(sizeof(tsrm_tls_entry)) + ts… in allocate_new_resource()
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()
401 (*thread_resources_ptr)->count = id_count; in allocate_new_resource()
402 (*thread_resources_ptr)->thread_id = thread_id; in allocate_new_resource()
403 (*thread_resources_ptr)->next = NULL; in allocate_new_resource()
406 tsrm_tls_set(*thread_resources_ptr); in allocate_new_resource()
407 TSRMLS_CACHE = *thread_resources_ptr; 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()