Lines Matching refs:nthreads
1512 if (nthreads < 2 || list->count < MT_SORT_THRESHOLD) {
1513 size_t nthreads_save = nthreads;
1514 nthreads = 1;
1522 nthreads = nthreads_save;
1529 parts = sort_malloc(sizeof(struct sort_list*) * nthreads);
1531 avgsize = list->count / nthreads;
1537 for (i = 0; i < nthreads; ++i) {
1545 sz = (i == nthreads - 1) ? list->count - cstart :
1559 for (i = 0; i < nthreads; ++i) {
1583 for (i = 0; i < nthreads; ++i) {
1590 merge_list_parts(parts, nthreads, fn);
1593 for (i = 0; i < nthreads; ++i) {