/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
tsan_thread.cc | 50 pthread_t threads[kAlive] = {}; local in function:TEST 52 if (threads[i % kAlive]) 53 pthread_join(threads[i % kAlive], 0); 54 pthread_create(&threads[i % kAlive], 0, thread_alot_func, 0); 57 pthread_join(threads[i], 0);
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
sanitizer_mutex_test.cc | 107 pthread_t threads[kThreads]; local in function:__sanitizer::TEST 109 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); 111 PTHREAD_JOIN(threads[i], 0); 118 pthread_t threads[kThreads]; local in function:__sanitizer::TEST 120 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); 122 PTHREAD_JOIN(threads[i], 0); 129 pthread_t threads[kThreads]; local in function:__sanitizer::TEST 131 PTHREAD_CREATE(&threads[i], 0, lock_thread<BlockingMutex>, &data); 133 PTHREAD_JOIN(threads[i], 0);
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
tsan_mutex_test.cc | 99 pthread_t threads[kThreads]; local in function:__tsan::TEST 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); 103 pthread_join(threads[i], 0); 109 pthread_t threads[kThreads]; local in function:__tsan::TEST 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); 113 pthread_join(threads[i], 0); 119 pthread_t threads[kThreads]; local in function:__tsan::TEST 121 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); 123 pthread_join(threads[i], 0);
|
/src/lib/libpthread/ |
call_once.c | 37 #include <threads.h>
|
tss.c | 38 #include <threads.h>
|
cnd.c | 38 #include <threads.h>
|
mtx.c | 38 #include <threads.h>
|
/src/tests/usr.bin/c++/ |
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...] |
/src/tests/lib/libc/stdlib/ |
t_getenv_thread.c | 144 atf_tc_set_md_var(tc, "descr", "Test getenv_r(3) with threads"); 150 pthread_t threads[THREADED_NUM_THREADS]; local in function:ATF_TC_BODY 158 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_getenv_r, 163 ATF_CHECK(pthread_join(threads[j], NULL) == 0); 175 pthread_t threads[THREADED_NUM_THREADS]; local in function:ATF_TC_BODY 183 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_putenv, 188 ATF_CHECK(pthread_join(threads[j], NULL) == 0); 200 pthread_t threads[THREADED_NUM_THREADS]; local in function:ATF_TC_BODY 208 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_setenv, 213 ATF_CHECK(pthread_join(threads[j], NULL) == 0) 225 pthread_t threads[THREADED_NUM_THREADS]; local in function:ATF_TC_BODY [all...] |
/src/tools/xz-include/ |
Makefile | 11 CONFIGURE_ARGS+= --enable-threads=no --disable-nls
|
/src/tests/usr.bin/gdb/ |
t_regress.sh | 30 atf_test_case threads 92 atf_add_test_case threads
|
/src/tests/crypto/libcrypto/ |
t_libcrypto.sh | 65 atf_test_case threads 90 atf_add_test_case threads
|
Makefile | 6 rc2 rc4 rsa srp threads
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_stoptheworld_mac.cc | 58 thread_array_t threads; local in function:__sanitizer::RunThread 60 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); 62 VReport(1, "Failed to get threads for task (errno %d).\n", err); 68 if (threads[i] == thread_self) continue; 70 thread_suspend(threads[i]); 71 suspended_threads_list.Append(threads[i]);
|
/src/tests/lib/libpthread/ |
h_resolv.c | 146 pthread_t *threads; local in function:main 180 if ((threads = malloc(nthreads * sizeof(pthread_t))) == NULL) 186 threads[i] = run(&nleft[i]); 208 pthread_join(threads[i], NULL); 209 free(threads);
|
t_call_once.c | 37 #include <threads.h>
|
t_sem.c | 159 pthread_t threads[NTHREADS]; local in function:ATF_TC_BODY 190 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, 201 PTHREAD_REQUIRE(pthread_join(threads[i], NULL));
|
/src/tests/crypto/libcrypto/threads/ |
Makefile | 5 HELPER_DIR= threads
|
/src/tests/lib/libc/sys/ |
t_ptrace_lwp_wait.h | 61 traceme_lwpinfo(const size_t threads, const char *iter) 79 /* Maximum number of supported threads in this test */ 88 ATF_REQUIRE(__arraycount(t) >= threads); 110 for (n = 0; n < threads; n++) { 117 while (lwpinfo_thread_done < threads) { 231 for (n = 0; n <= threads; n++) { 327 DPRINTF("Assert that there are no more threads\n"); 351 #define TRACEME_LWPINFO(test, threads, iter) \ 356 "Verify " iter " with the child with " #threads \ 357 " spawned extra threads"); \ [all...] |
/src/lib/libcrypt/ |
pw_gensalt.c | 178 uint32_t threads = 0; local in function:__gensalt_argon2_decode_option 211 threads = tmp; 228 threads < ARGON2_MIN_THREADS) { 229 estimate_argon2_params(atype, &time, &memory, &threads); 232 snprintf(dst, dlen, "m=%d,t=%d,p=%d", memory, time, threads);
|
crypt-argon2.c | 165 uint32_t threads = 1; local in function:estimate_argon2_params 216 if (argon2_hash(time, memory, threads, 239 *ethreads = threads; 244 threads = 1; 309 * threads (p) 334 ctx->threads = tmp; 422 ctx.threads, pw, strlen(pw), ctx.salt, ctx.saltlen,
|
/src/sys/fs/nfs/common/ |
nfs_fha.h | 60 * avoid contention between threads over single files. 69 struct svcthread_list threads; member in struct:fha_hash_entry
|
/src/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
i915_request.c | 434 struct task_struct **threads; local in function:mock_breadcrumbs_smoketest 440 * threads. A very simple test to only catch the most egregious of bugs. 444 threads = kcalloc(ncpus, sizeof(*threads), GFP_KERNEL); 445 if (!threads) 463 threads[n] = kthread_run(__igt_breadcrumbs_smoketest, 465 if (IS_ERR(threads[n])) { 466 ret = PTR_ERR(threads[n]); 471 get_task_struct(threads[n]); 474 yield(); /* start all threads before we begin * 1328 struct task_struct **threads; local in function:live_breadcrumbs_smoketest [all...] |
/src/sys/external/isc/libsodium/dist/m4/ |
ax_pthread.m4 | 11 # This macro figures out how to build C programs using POSIX threads. It 12 # sets the PTHREAD_LIBS output variable to the threads library and linker 40 # ACTION-IF-FOUND is a list of shell commands to run if a threads library 100 # etcetera environment variables, and if threads linking works using 121 # We must check for the threads library under a number of different 137 # none: in case threads are in libc; should be tried before -Kthread and 139 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 140 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 143 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but i [all...] |
/src/sys/arch/x86/x86/ |
cpu_topology.c | 191 const u_int threads = __SHIFTOUT(descs[1], local in function:x86_cpu_topology 195 smt_bits = ilog2(threads);
|