Lines Matching refs:id_count
52 static ts_rsrc_id id_count; variable
164 id_count=0; in tsrm_startup()
273 if (p->count < id_count) { in tsrm_update_active_threads()
276 p->storage = (void *) realloc(p->storage, sizeof(void *)*id_count); in tsrm_update_active_threads()
277 for (j=p->count; j<id_count; j++) { in tsrm_update_active_threads()
287 p->count = id_count; in tsrm_update_active_threads()
303 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_id()
307 if (resource_types_table_size < id_count) { in ts_allocate_id()
309 _tmp = (tsrm_resource_type *) realloc(resource_types_table, sizeof(tsrm_resource_type)*id_count); in ts_allocate_id()
317 resource_types_table_size = id_count; in ts_allocate_id()
349 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_fast_id()
365 if (resource_types_table_size < id_count) { in ts_allocate_fast_id()
367 _tmp = (tsrm_resource_type *) realloc(resource_types_table, sizeof(tsrm_resource_type)*id_count); in ts_allocate_fast_id()
375 resource_types_table_size = id_count; in ts_allocate_fast_id()
398 if (id_count > 0) { 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()
412 for (i=0; i<id_count; i++) { in allocate_new_resource()