Searched refs:NCT_ALLOC_CHUNK_SIZE (Results 1 – 1 of 1) sorted by relevance
85 #define NCT_ALLOC_CHUNK_SIZE 64 /* In how big chunks we grow the thread table */ macro396 while (index >= NCT_ALLOC_CHUNK_SIZE) { in ttable_get_element()397 index -= NCT_ALLOC_CHUNK_SIZE; in ttable_get_element()398 threads_table = threads_table[NCT_ALLOC_CHUNK_SIZE - 1].next; in ttable_get_element()425 new_chunk = calloc(NCT_ALLOC_CHUNK_SIZE, sizeof(struct threads_table_el)); in ttable_get_empty_slot()434 this->threads_table_size += NCT_ALLOC_CHUNK_SIZE; in ttable_get_empty_slot()437 for (int i = 0 ; i < NCT_ALLOC_CHUNK_SIZE - 1; i++) { in ttable_get_empty_slot()440 new_chunk[NCT_ALLOC_CHUNK_SIZE - 1].next = NULL; in ttable_get_empty_slot()443 return this->threads_table_size - NCT_ALLOC_CHUNK_SIZE; in ttable_get_empty_slot()524 this->threads_table = calloc(NCT_ALLOC_CHUNK_SIZE, in nct_init()[all …]