Lines Matching refs:max_threads
129 KMP_DEBUG_ASSERT(nthr > max_threads); in resize()
132 max_threads = nthr * 2; in resize()
138 max_threads * sizeof(flags_s)); in resize()
140 flags[i] = (flags_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(flags_s)); in resize()
144 go = (go_s *)KMP_INTERNAL_REALLOC(go, max_threads * sizeof(go_s)); in resize()
146 go = (go_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(go_s)); in resize()
149 iter = (iter_s *)KMP_INTERNAL_REALLOC(iter, max_threads * sizeof(iter_s)); in resize()
151 iter = (iter_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(iter_s)); in resize()
155 (sleep_s *)KMP_INTERNAL_REALLOC(sleep, max_threads * sizeof(sleep_s)); in resize()
157 sleep = (sleep_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(sleep_s)); in resize()
172 for (size_t j = 0; j < max_threads; ++j) { in go_reset()
184 size_t old_max = max_threads; in init()
185 if (nthr > max_threads) { // need more space in arrays in init()
189 for (size_t i = 0; i < max_threads; i++) { in init()