/netbsd-src/crypto/external/bsd/openssl.old/dist/Configurations/ |
H A D | 10-main.conf | 230 cflags => add(threads("-pthread")), 232 ex_libs => add(threads("-pthread")), 251 cflags => add_before("-m64", threads("-pthread")), 253 ex_libs => add(threads("-pthread")), 280 cppflags => add(threads("-D_REENTRANT")), 283 lflags => add(threads("-mt")), 284 ex_libs => add(threads("-lpthread")), 299 cflags => add(threads("-pthread")), 301 ex_libs => add(threads("-pthread")), 333 cppflags => add(threads("-D_REENTRANT")), [all …]
|
/netbsd-src/tests/usr.bin/c++/ |
H A D | t_call_once2.sh | 108 std::thread threads[nr_threads]; 111 threads[i] = std::thread(print_once); 114 threads[i].join(); 140 std::thread threads[nr_threads]; 143 threads[i] = std::thread(print_once); 146 threads[i].join(); 184 std::thread threads[nr_threads]; 187 threads[i] = std::thread(print_once); 190 threads[i].join(); 221 std::thread threads[nr_threads]; [all …]
|
/netbsd-src/external/mit/libuv/dist/test/ |
H A D | test-thread.c | 175 struct test_thread threads[8]; in TEST_IMPL() local 179 memset(threads, 0, sizeof(threads)); in TEST_IMPL() 181 for (i = 0; i < ARRAY_SIZE(threads); i++) { in TEST_IMPL() 182 r = uv_thread_create(&threads[i].thread_id, do_work, &threads[i]); in TEST_IMPL() 186 for (i = 0; i < ARRAY_SIZE(threads); i++) { in TEST_IMPL() 187 r = uv_thread_join(&threads[i].thread_id); in TEST_IMPL() 189 ASSERT(threads[i].thread_called == 1); in TEST_IMPL() 207 uv_thread_t threads[2]; in TEST_IMPL() local 212 ASSERT(0 == uv_thread_create(threads + 0, tls_thread, threads + 0)); in TEST_IMPL() 213 ASSERT(0 == uv_thread_create(threads + 1, tls_thread, threads + 1)); in TEST_IMPL() [all …]
|
H A D | benchmark-async.c | 76 struct ctx* threads; in test_async() local 81 threads = calloc(nthreads, sizeof(threads[0])); in test_async() 82 ASSERT_NOT_NULL(threads); in test_async() 85 ctx = threads + i; in test_async() 100 ASSERT(0 == uv_thread_join(&threads[i].thread)); in test_async() 105 ctx = threads + i; in test_async() 117 free(threads); in test_async()
|
H A D | test-thread-equal.c | 39 uv_thread_t threads[2]; in TEST_IMPL() local 45 ASSERT(0 == uv_thread_create(threads + 0, check_thread, subthreads + 0)); in TEST_IMPL() 46 ASSERT(0 == uv_thread_create(threads + 1, check_thread, subthreads + 1)); in TEST_IMPL() 47 ASSERT(0 == uv_thread_join(threads + 0)); in TEST_IMPL() 48 ASSERT(0 == uv_thread_join(threads + 1)); in TEST_IMPL()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/ |
H A D | cfns.gperf | 507 #call_once, 11 -- C11 threads 508 #cnd_broadcast, 11 -- C11 threads 509 #cnd_destroy, 11 -- C11 threads 510 #cnd_init, 11 -- C11 threads 511 #cnd_signal, 11 -- C11 threads 512 #cnd_timedwait, 11 -- C11 threads 513 #cnd_wait, 11 -- C11 threads 514 #mtx_destroy, 11 -- C11 threads 515 #mtx_init, 11 -- C11 threads 516 #mtx_lock, 11 -- C11 threads [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/ |
H A D | cfns.gperf | 507 #call_once, 11 -- C11 threads 508 #cnd_broadcast, 11 -- C11 threads 509 #cnd_destroy, 11 -- C11 threads 510 #cnd_init, 11 -- C11 threads 511 #cnd_signal, 11 -- C11 threads 512 #cnd_timedwait, 11 -- C11 threads 513 #cnd_wait, 11 -- C11 threads 514 #mtx_destroy, 11 -- C11 threads 515 #mtx_init, 11 -- C11 threads 516 #mtx_lock, 11 -- C11 threads [all …]
|
/netbsd-src/tests/lib/libc/stdlib/ |
H A D | t_getenv_thread.c | 150 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 158 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_getenv_r, in ATF_TC_BODY() 163 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 175 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 183 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_putenv, in ATF_TC_BODY() 188 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 200 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 208 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_setenv, in ATF_TC_BODY() 213 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 225 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local [all …]
|
/netbsd-src/external/public-domain/xz/dist/src/liblzma/common/ |
H A D | stream_encoder_mt.c | 146 worker_thread *threads; member 425 mythread_sync(coder->threads[i].mutex) { in threads_stop() 426 coder->threads[i].state = THR_STOP; in threads_stop() 427 mythread_cond_signal(&coder->threads[i].cond); in threads_stop() 436 mythread_sync(coder->threads[i].mutex) { in threads_stop() 437 while (coder->threads[i].state != THR_IDLE) in threads_stop() 438 mythread_cond_wait(&coder->threads[i].cond, in threads_stop() 439 &coder->threads[i].mutex); in threads_stop() 453 mythread_sync(coder->threads[i].mutex) { in threads_end() 454 coder->threads[i].state = THR_EXIT; in threads_end() [all …]
|
H A D | outqueue.c | 24 uint64_t buf_size_max, uint32_t threads) in get_options() argument 26 if (threads > LZMA_THREADS_MAX || buf_size_max > BUF_SIZE_MAX) in get_options() 34 *bufs_count = threads * 2; in get_options() 42 lzma_outq_memusage(uint64_t buf_size_max, uint32_t threads) in lzma_outq_memusage() argument 47 if (get_options(&bufs_alloc_size, &bufs_count, buf_size_max, threads) in lzma_outq_memusage() 58 uint64_t buf_size_max, uint32_t threads) in lzma_outq_init() argument 65 buf_size_max, threads)); in lzma_outq_init()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
H A D | tsan_mutex_test.cc | 99 pthread_t threads[kThreads]; in TEST() local 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); in TEST() 103 pthread_join(threads[i], 0); in TEST() 109 pthread_t threads[kThreads]; in TEST() local 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); in TEST() 113 pthread_join(threads[i], 0); in TEST() 119 pthread_t threads[kThreads]; in TEST() local 121 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); in TEST() 123 pthread_join(threads[i], 0); in TEST()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_mutex_test.cc | 107 pthread_t threads[kThreads]; in TEST() local 109 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST() 111 PTHREAD_JOIN(threads[i], 0); in TEST() 118 pthread_t threads[kThreads]; in TEST() local 120 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST() 122 PTHREAD_JOIN(threads[i], 0); in TEST() 129 pthread_t threads[kThreads]; in TEST() local 131 PTHREAD_CREATE(&threads[i], 0, lock_thread<BlockingMutex>, &data); in TEST() 133 PTHREAD_JOIN(threads[i], 0); in TEST()
|
/netbsd-src/external/mpl/bind/dist/tests/isc/ |
H A D | netmgr_test.c |
|
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
H A D | DbeThread.cc | 110 threads = new Vector <pthread_t>(max_threads); in DbeThreadPool() 120 delete threads; in ~DbeThreadPool() 131 q ? q->id : -1, queues_cnt, (int) threads->size (), max_threads); in get_queue() 173 __LINE__, q->id, queues_cnt, (int) threads->size (), max_threads); in put_queue() 174 if (queues_cnt > threads->size () && threads->size () < max_threads) in put_queue() 185 threads->append (thr); in put_queue() 210 for (int i = 0, sz = threads->size (); i < sz; i++) in wait_queues() 213 pthread_join (threads->get (i), &retval); in wait_queues()
|
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
H A D | DbeThread.cc | 110 threads = new Vector <pthread_t>(max_threads); in DbeThreadPool() 120 delete threads; in ~DbeThreadPool() 131 q ? q->id : -1, queues_cnt, (int) threads->size (), max_threads); in get_queue() 173 __LINE__, q->id, queues_cnt, (int) threads->size (), max_threads); in put_queue() 174 if (queues_cnt > threads->size () && threads->size () < max_threads) in put_queue() 185 threads->append (thr); in put_queue() 210 for (int i = 0, sz = threads->size (); i < sz; i++) in wait_queues() 213 pthread_join (threads->get (i), &retval); in wait_queues()
|
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/ |
H A D | benchmark_test.cc | 159 int thread_size = static_cast<int>(size) / state.threads; in BM_ParallelMemset() 226 assert(st.threads == 1 || st.threads == 2 || st.threads == 3); in BM_DenseThreadRanges() 229 assert(st.threads == 1 || st.threads == 3 || st.threads == 4); in BM_DenseThreadRanges() 232 assert(st.threads == 5 || st.threads == 8 || st.threads == 11 || in BM_DenseThreadRanges() 233 st.threads == 14); in BM_DenseThreadRanges()
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/test/ |
H A D | benchmark_test.cc | 159 int thread_size = static_cast<int>(size) / state.threads; in BM_ParallelMemset() 226 assert(st.threads == 1 || st.threads == 2 || st.threads == 3); in BM_DenseThreadRanges() 229 assert(st.threads == 1 || st.threads == 3 || st.threads == 4); in BM_DenseThreadRanges() 232 assert(st.threads == 5 || st.threads == 8 || st.threads == 11 || in BM_DenseThreadRanges() 233 st.threads == 14); in BM_DenseThreadRanges()
|
/netbsd-src/external/mit/libuv/dist/src/ |
H A D | threadpool.c | 38 static uv_thread_t* threads; variable 179 if (uv_thread_join(threads + i)) in uv__threadpool_cleanup() 182 if (threads != default_threads) in uv__threadpool_cleanup() 183 uv__free(threads); in uv__threadpool_cleanup() 188 threads = NULL; in uv__threadpool_cleanup() 207 threads = default_threads; in init_threads() 209 threads = uv__malloc(nthreads * sizeof(threads[0])); in init_threads() 210 if (threads == NULL) { in init_threads() 212 threads = default_threads; in init_threads() 230 if (uv_thread_create(threads + i, worker, &sem)) in init_threads()
|
/netbsd-src/external/zlib/pigz/dist/ |
H A D | yarn.c | 196 local thread *threads = NULL; /* list of extant threads */ variable 215 prior = &(threads); in reenter() 226 if (threads != match) { in reenter() 228 match->next = threads; in reenter() 229 threads = match; in reenter() 289 th->next = threads; in launch() 290 threads = th; in launch() 306 prior = &(threads); in join() 337 while (threads != NULL) { in join_all() 342 prior = &(threads); in join_all()
|
/netbsd-src/external/bsd/openldap/dist/tests/progs/ |
H A D | slapd-auth.c | 73 static int threads = 1; variable 133 if ( lutil_atoi( &threads, optarg ) != 0 || threads < 1 ) { in main() 151 r1binds = calloc( threads*4, sizeof( int )); in main() 152 r2binds = r1binds + threads; in main() 153 r1old = (int *)r2binds + threads; in main() 154 r2old = r1old + threads; in main() 288 for ( i = 0; i<threads; i++ ) { in do_time() 308 for ( i = 0; i < threads; i++ ) { in do_time()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
H A D | tsan_thread.cc | 50 pthread_t threads[kAlive] = {}; in TEST() local 52 if (threads[i % kAlive]) in TEST() 53 pthread_join(threads[i % kAlive], 0); in TEST() 54 pthread_create(&threads[i % kAlive], 0, thread_alot_func, 0); in TEST() 57 pthread_join(threads[i], 0); in TEST()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/ |
H A D | team.c | 115 pool->threads[thr->ts.team_id] = thr; in gomp_thread_start() 264 struct gomp_thread *nthr = pool->threads[i]; in gomp_free_thread() 288 team_free (pool->threads); in gomp_free_thread() 484 pool->threads in gomp_team_start() 485 = gomp_realloc (pool->threads, in gomp_team_start() 489 pool->threads[0] = thr; in gomp_team_start() 558 && pool->threads[i]->place != p + 1) in gomp_team_start() 559 || pool->threads[i]->place <= place_partition_off in gomp_team_start() 560 || pool->threads[i]->place > (place_partition_off in gomp_team_start() 582 if (pool->threads[j]->place in gomp_team_start() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libgomp/ |
H A D | team.c | 121 pool->threads[thr->ts.team_id] = thr; in gomp_thread_start() 277 struct gomp_thread *nthr = pool->threads[i]; in gomp_free_thread() 301 team_free (pool->threads); in gomp_free_thread() 497 pool->threads in gomp_team_start() 498 = gomp_realloc (pool->threads, in gomp_team_start() 502 pool->threads[0] = thr; in gomp_team_start() 571 && pool->threads[i]->place != p + 1) in gomp_team_start() 572 || pool->threads[i]->place <= place_partition_off in gomp_team_start() 573 || pool->threads[i]->place > (place_partition_off in gomp_team_start() 595 if (pool->threads[j]->place in gomp_team_start() [all …]
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Examples/ |
H A D | threaded_example.txt | 4 Here we run a test program called "cputhread" that creates 4 busy threads 22 In the above output, we can see that cputhread has four busy threads with 24 each of these threads on the CPU between 17 and 28 times. 52 not be beyond our sample rate of 100. The distribution of threads on CPU 59 threads, however due to a coding problem (poor use of mutex locks) they 76 in total, however we are still on our 4 CPU server. Only two threads have 82 Now more of a fringe case. This version of cpuserial again creates 4 threads 101 So all threads are running, good. And with a total of 109, at some point 105 since all threads are CPU hungry we'd hope that more often they could
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
H A D | threaded_example.txt | 4 Here we run a test program called "cputhread" that creates 4 busy threads 22 In the above output, we can see that cputhread has four busy threads with 24 each of these threads on the CPU between 17 and 28 times. 52 not be beyond our sample rate of 100. The distribution of threads on CPU 59 threads, however due to a coding problem (poor use of mutex locks) they 76 in total, however we are still on our 4 CPU server. Only two threads have 82 Now more of a fringe case. This version of cpuserial again creates 4 threads 101 So all threads are running, good. And with a total of 109, at some point 105 since all threads are CPU hungry we'd hope that more often they could
|