/freebsd-10-stable/contrib/gcclibs/libgomp/ |
H A D | ordered.c | 46 if (team == NULL || team->nthreads == 1) 50 if (index >= team->nthreads) 51 index -= team->nthreads; 77 if (team == NULL || team->nthreads == 1) 87 if (next == team->nthreads) 112 if (team == NULL || team->nthreads == 1) 130 if (ws->ordered_num_used < team->nthreads) 133 if (index >= team->nthreads) 134 index -= team->nthreads; 139 if (index == team->nthreads) [all...] |
H A D | team.c | 137 new_team (unsigned nthreads, struct gomp_work_share *work_share) argument 142 size = sizeof (*team) + nthreads * sizeof (team->ordered_release[0]); 152 team->nthreads = nthreads; 153 gomp_barrier_init (&team->barrier, nthreads); 178 gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, argument 191 team = new_team (nthreads, work_share); 204 if (nthreads == 1) 218 if (nthreads <= old_threads_used) 219 n = nthreads; [all...] |
H A D | iter.c | 46 unsigned long nthreads = team ? team->nthreads : 1; local 52 if (nthreads == 1) 79 q = n / nthreads; 80 q += (q * nthreads != n); 115 /* Initial guess is a C sized chunk positioned nthreads iterations 117 s0 = (thr->ts.static_trip * nthreads + i) * c; 238 unsigned long nthreads = team ? team->nthreads : 1; local 247 q = (n + nthreads 272 unsigned long nthreads = team ? team->nthreads : 1; local [all...] |
H A D | parallel.c | 88 return team ? team->nthreads : 1; 116 if (team->nthreads > 1)
|
H A D | work.c | 39 gomp_new_work_share (bool ordered, unsigned nthreads) argument 46 size += nthreads * sizeof (ws->ordered_team_ids[0]); 130 ws = gomp_new_work_share (ordered, team->nthreads); 208 if (completed == team->nthreads)
|
H A D | libgomp.h | 185 unsigned nthreads; member in struct:gomp_team
|
/freebsd-10-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.c | 49 barrier_init(barrier_t *bar, int nthreads) argument 59 bar->bar_nthr = nthreads;
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | taskq.c | 229 taskq_create(const char *name, int nthreads, pri_t pri, argument 237 ASSERT3S(nthreads, >=, 0); 238 ASSERT3S(nthreads, <=, 100); 239 pct = MIN(nthreads, 100); 242 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; 243 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ 245 ASSERT3S(nthreads, >=, 1); 255 tq->tq_active = nthreads; 256 tq->tq_nthreads = nthreads; 281 int nthreads = tq->tq_nthreads; local [all...] |
/freebsd-10-stable/tools/tools/netrate/netreceive/ |
H A D | netreceive.c | 72 fprintf(stderr, "netreceive port [nthreads]\n"); 127 make_threads(int *s, int nsock, int nthreads) argument 129 int i, si, nt = nsock * nthreads; 159 main_thread(struct td_desc **tp, int nsock, int nthreads) argument 168 int i, nt = nsock * nthreads; 201 int error, v, nthreads = 1; local 219 nthreads = strtoul(argv[2], &dummy, 10); 220 if (nthreads < 1 || nthreads > 64) 267 nsock, nthreads, (u_shor [all...] |
/freebsd-10-stable/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 66 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc __unused, argument 72 nthreads = MAX((mp_ncpus * nthreads) / 100, 1); 77 (void) taskqueue_start_threads(&tq->tq_queue, nthreads, pri, "%s", name); 83 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc, argument 87 return (taskq_create(name, nthreads, pri, minalloc, maxalloc, flags));
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/ |
H A D | h_resolv.c | 67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n", 144 int nthreads = NTHREADS; local 160 nthreads = atoi(optarg); 172 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) 180 for (i = 0; i < nthreads; i++) { 187 for (i = 0; i < nthreads; i++) {
|
/freebsd-10-stable/tools/regression/lib/libc/resolv/ |
H A D | resolv.c | 75 "Usage: %s [-AdHIr] [-h <nhosts>] [-n <nthreads>] <file> ...\n", 250 int nthreads = NTHREADS; local 275 nthreads = atoi(optarg); 290 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) 298 for (i = 0; i < nthreads; i++) { 305 for (i = 0; i < nthreads; i++) {
|
/freebsd-10-stable/usr.bin/sort/ |
H A D | radixsort.c | 104 if (sort_left == 0 && nthreads > 1) 142 if (nthreads > 1) 150 if (nthreads > 1) 155 if (nthreads > 1) 607 if (nthreads < 2) { 614 for(i = 0; i < nthreads; ++i) { 636 for (i = 0; i < nthreads; ++i) 648 size_t nthreads_save = nthreads; 650 nthreads = 1; 652 if (nthreads > [all...] |
H A D | sort.h | 58 extern size_t nthreads;
|
H A D | file.c | 1510 if (nthreads < 2 || list->count < MT_SORT_THRESHOLD) { 1511 size_t nthreads_save = nthreads; 1512 nthreads = 1; 1520 nthreads = nthreads_save; 1527 parts = sort_malloc(sizeof(struct sort_list*) * nthreads); 1529 avgsize = list->count / nthreads; 1535 for (i = 0; i < nthreads; ++i) { 1543 sz = (i == nthreads - 1) ? list->count - cstart : 1557 for (i = 0; i < nthreads; ++i) { 1581 for (i = 0; i < nthreads; [all...] |
H A D | sort.c | 107 size_t nthreads = 1; variable 291 nthreads = ncpu; 1102 nthreads = (size_t)(atoi(optarg)); 1103 if (nthreads < 1) 1104 nthreads = 1; 1105 if (nthreads > 1024) 1106 nthreads = 1024; 1211 nthreads = 1; 1253 nthreads = 1;
|
/freebsd-10-stable/sys/mips/rmi/ |
H A D | fmn.c | 87 int nthreads; /* number of threads started */ member in struct:msgring_thread 301 if(nt >= mthd->nthreads) { 352 ++mthd->nthreads; /* Active thread count */ 359 msgrng_setconfig(mthd->running, mthd->nthreads); 368 msgrng_setconfig(mthd->running, mthd->nthreads); 397 mthd->running = mthd->nthreads = 0;
|
/freebsd-10-stable/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 35 unsigned nthreads; member in struct:ctl_arena_stats_s
|
/freebsd-10-stable/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 232 int nthreads = NTHREADS; local 243 nleft = malloc(nthreads * sizeof(int)); 252 for (i = 0; i < nthreads; i++) { 259 for (i = 0; i < nthreads; i++) {
|
/freebsd-10-stable/tools/tools/netmap/ |
H A D | pkt-gen.c | 174 int nthreads; member in struct:glob_arg 810 if (targ->g->nthreads > 1) { 910 if (targ->g->nthreads > 1) { 1055 int i, n = targ->g->npackets / targ->g->nthreads; 1409 targs = calloc(g->nthreads, sizeof(*targs)); 1414 for (i = 0; i < g->nthreads; i++) { 1426 if (g->nthreads > 1) { 1428 D("invalid nthreads mode %d", nmd.req.nr_flags); 1499 for (i = 0; i < g->nthreads; i++) { 1515 if (done == g->nthreads) [all...] |
/freebsd-10-stable/contrib/jemalloc/src/ |
H A D | ctl.c | 376 {NAME("nthreads"), CTL(stats_arenas_i_nthreads)}, 532 sstats->nthreads += astats->nthreads; 631 ctl_stats.arenas[ctl_stats.narenas].nthreads = 0; 638 ctl_stats.arenas[i].nthreads = arenas[i]->nthreads; 640 ctl_stats.arenas[i].nthreads = 0; 1199 arenas[oldind]->nthreads--; 1200 arenas[newind]->nthreads++; 1640 CTL_RO_GEN(stats_arenas_i_nthreads, ctl_stats.arenas[mib[2]].nthreads, unsigne [all...] |
H A D | stats.c | 208 unsigned nthreads; local 219 CTL_I_GET("stats.arenas.0.nthreads", &nthreads, unsigned); 221 "assigned threads: %u\n", nthreads);
|
H A D | jemalloc.c | 170 if (arenas[i]->nthreads < 171 arenas[choose]->nthreads) 187 if (arenas[choose]->nthreads == 0 198 ret->nthreads++; 203 ret->nthreads++; 285 arena->nthreads--;
|
/freebsd-10-stable/contrib/gdb/gdb/ |
H A D | gdb_thread_db.h | 238 int nthreads; /* Total number of threads in use. */ member in struct:td_ta_stats
|
H A D | procfs.c | 3030 int nthreads = 0; local 3032 if (ioctl (pi->ctl_fd, PIOCNTHR, &nthreads) < 0) 3035 return nthreads; 3275 int nthreads, i; local 3290 nthreads = proc_get_nthreads (pi); 3291 if (nthreads < 2) 3294 threads = xmalloc (nthreads * sizeof (tid_t)); 3299 for (i = 0; i < nthreads; i++)
|