Lines Matching refs:table
46 static void grow_table(struct thread_table *table)
48 size_t size = table->allocated;
55 new_table = realloc(table->data, size * sizeof(*table->data));
60 table->data = new_table;
61 table->allocated = size;
64 static struct thread_info *get_item(struct thread_table *table)
66 if (table->active >= table->allocated)
67 grow_table(table);
68 return table->data + table->active;
71 static void commit_item(struct thread_table *table)
73 table->active++;