/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
H A D | schedlock-thread-exit.c | 30 const int nthreads = 10; local 31 pthread_t threads[nthreads]; 33 for (int i = 0; i < nthreads; ++i) 39 for (int i = 0; i < nthreads; ++i)
|
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/config/nvptx/ |
H A D | pool.h | 37 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument
|
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/config/accel/ |
H A D | pool.h | 37 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument
|
/netbsd-current/external/gpl3/gcc/dist/libgomp/config/accel/ |
H A D | pool.h | 37 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument
|
/netbsd-current/usr.sbin/npf/npftest/libnpftest/ |
H A D | npf_perf_test.c | 55 npf_test_conc(bool st, unsigned nthreads) argument 66 npackets = kmem_zalloc(sizeof(uint64_t) * nthreads, KM_SLEEP); 67 l = kmem_zalloc(sizeof(lwp_t *) * nthreads, KM_SLEEP); 69 for (unsigned i = 0; i < nthreads; i++) { 82 for (unsigned i = 0; i < nthreads; i++) { 86 kmem_free(npackets, sizeof(uint64_t) * nthreads); 87 kmem_free(l, sizeof(lwp_t *) * nthreads); 89 printf("%u\t%" PRIu64 "\n", nthreads, total / NSECS);
|
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | benchmark-async.c | 35 unsigned int nthreads; member in struct:ctx 75 static int test_async(int nthreads) { argument 81 threads = calloc(nthreads, sizeof(threads[0])); 84 for (i = 0; i < nthreads; i++) { 86 ctx->nthreads = nthreads; 99 for (i = 0; i < nthreads; i++) 104 for (i = 0; i < nthreads; i++) { 113 nthreads,
|
H A D | benchmark-async-pummel.c | 64 static int test_async_pummel(int nthreads) { argument 70 tids = calloc(nthreads, sizeof(tids[0])); 76 for (i = 0; i < nthreads; i++) 86 for (i = 0; i < nthreads; i++) 90 nthreads,
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/ |
H A D | mi-nsmoribund.exp | 51 set nthreads 10 63 for {set i 0} {$i < $nthreads} {incr i} { 90 for {set i $nthreads} {$i > 1} {incr i -1} {
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/ |
H A D | mi-nsmoribund.exp | 47 set nthreads 10 59 for {set i 0} {$i < $nthreads} {incr i} { 86 for {set i $nthreads} {$i > 1} {incr i -1} {
|
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/config/posix/ |
H A D | pool.h | 37 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 47 pool->threads_busy = nthreads;
|
/netbsd-current/external/gpl3/gcc/dist/libgomp/config/posix/ |
H A D | pool.h | 37 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 47 pool->threads_busy = nthreads;
|
/netbsd-current/external/gpl3/gcc/dist/libgomp/ |
H A D | team.c | 151 get_last_team (unsigned nthreads) argument 156 struct gomp_thread_pool *pool = gomp_get_thread_pool (thr, nthreads); 158 if (last_team != NULL && last_team->nthreads == nthreads) 170 gomp_new_team (unsigned nthreads) argument 175 team = get_last_team (nthreads); 182 sizeof (*team) + nthreads * extra); 184 team = team_malloc (sizeof (*team) + nthreads * extra); 190 gomp_barrier_init (&team->barrier, nthreads); 193 team->nthreads 320 gomp_team_start(void (*fn) (void *), void *data, unsigned nthreads, unsigned flags, struct gomp_team *team, struct gomp_taskgroup *taskgroup) argument [all...] |
H A D | iter.c | 44 unsigned long nthreads = team ? team->nthreads : 1; local 50 if (nthreads == 1) 77 q = n / nthreads; 78 t = n % nthreads; 116 /* Initial guess is a C sized chunk positioned nthreads iterations 118 s0 = (thr->ts.static_trip * nthreads + i) * c; 266 unsigned long nthreads = team ? team->nthreads : 1; local 275 q = (n + nthreads 300 unsigned long nthreads = team ? team->nthreads : 1; local [all...] |
H A D | iter_ull.c | 45 unsigned long nthreads = team ? team->nthreads : 1; local 51 if (nthreads == 1) 78 q = n / nthreads; 79 t = n % nthreads; 118 /* Initial guess is a C sized chunk positioned nthreads iterations 120 s0 = (thr->ts.static_trip * (gomp_ull) nthreads + i) * c; 267 gomp_ull nthreads = team ? team->nthreads : 1; local 279 q = (n + nthreads 304 gomp_ull nthreads = team ? team->nthreads : 1; local [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/ |
H A D | team.c | 145 get_last_team (unsigned nthreads) argument 150 struct gomp_thread_pool *pool = gomp_get_thread_pool (thr, nthreads); 152 if (last_team != NULL && last_team->nthreads == nthreads) 164 gomp_new_team (unsigned nthreads) argument 169 team = get_last_team (nthreads); 174 team = team_malloc (sizeof (*team) + nthreads * extra); 179 gomp_barrier_init (&team->barrier, nthreads); 182 team->nthreads = nthreads; 307 gomp_team_start(void (*fn) (void *), void *data, unsigned nthreads, unsigned flags, struct gomp_team *team, struct gomp_taskgroup *taskgroup) argument [all...] |
H A D | iter.c | 44 unsigned long nthreads = team ? team->nthreads : 1; local 50 if (nthreads == 1) 77 q = n / nthreads; 78 t = n % nthreads; 116 /* Initial guess is a C sized chunk positioned nthreads iterations 118 s0 = (thr->ts.static_trip * nthreads + i) * c; 266 unsigned long nthreads = team ? team->nthreads : 1; local 275 q = (n + nthreads 300 unsigned long nthreads = team ? team->nthreads : 1; local [all...] |
H A D | iter_ull.c | 45 unsigned long nthreads = team ? team->nthreads : 1; local 51 if (nthreads == 1) 78 q = n / nthreads; 79 t = n % nthreads; 118 /* Initial guess is a C sized chunk positioned nthreads iterations 120 s0 = (thr->ts.static_trip * (gomp_ull) nthreads + i) * c; 267 gomp_ull nthreads = team ? team->nthreads : 1; local 279 q = (n + nthreads 304 gomp_ull nthreads = team ? team->nthreads : 1; local [all...] |
/netbsd-current/external/mit/libuv/dist/src/ |
H A D | threadpool.c | 37 static unsigned int nthreads; variable 46 return (nthreads + 1) / 2; 170 if (nthreads == 0) 178 for (i = 0; i < nthreads; i++) 189 nthreads = 0; 198 nthreads = ARRAY_SIZE(default_threads); 201 nthreads = atoi(val); 202 if (nthreads == 0) 203 nthreads = 1; 204 if (nthreads > MAX_THREADPOOL_SIZ [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.btrace/ |
H A D | non-stop.exp | 55 proc gdb_cont_to { threads cmd line nthreads } { 68 for {set i 0} {$i < $nthreads} {incr i} { 79 proc gdb_cont_to_bp_line { line threads nthreads } { 85 $nthreads 88 proc gdb_cont_to_no_history { threads cmd nthreads } { 95 $nthreads
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/ |
H A D | non-stop.exp | 54 proc gdb_cont_to { threads cmd line nthreads } { 67 for {set i 0} {$i < $nthreads} {incr i} { 76 proc gdb_cont_to_bp_line { line threads nthreads } { 82 $nthreads 85 proc gdb_cont_to_no_history { threads cmd nthreads } { 92 $nthreads
|
/netbsd-current/external/cddl/osnet/dist/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...] |
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/config/rtems/ |
H A D | pool.h | 74 gomp_get_own_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 80 pool->threads_busy = nthreads; 87 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 102 pool->threads_busy = nthreads; 106 pool = gomp_get_own_thread_pool (thr, nthreads);
|
/netbsd-current/external/gpl3/gcc/dist/libgomp/config/rtems/ |
H A D | pool.h | 74 gomp_get_own_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 80 pool->threads_busy = nthreads; 87 gomp_get_thread_pool (struct gomp_thread *thr, unsigned nthreads) argument 102 pool->threads_busy = nthreads; 106 pool = gomp_get_own_thread_pool (thr, nthreads);
|
/netbsd-current/tests/lib/libpthread/ |
H A D | h_resolv.c | 67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n", 145 int nthreads = NTHREADS; local 162 nthreads = atoi(optarg); 174 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) 180 if ((threads = malloc(nthreads * sizeof(pthread_t))) == NULL) 184 for (i = 0; i < nthreads; i++) { 191 for (i = 0; i < nthreads; i++) { 207 for (i = 0; i < nthreads; i++)
|
/netbsd-current/external/bsd/jemalloc/dist/test/unit/ |
H A D | retained.c | 109 unsigned nthreads = ncpus * 2; local 110 VARIABLE_ARRAY(thd_t, threads, nthreads); 111 for (unsigned i = 0; i < nthreads; i++) { 121 while (atomic_load_u(&nfinished, ATOMIC_ACQUIRE) < nthreads) { 132 size_t allocated = esz * nthreads * PER_THD_NALLOCS; 169 for (unsigned i = 0; i < nthreads; i++) {
|