HomeSort by: relevance | last modified time | path
    Searched defs:threads (Results 1 - 25 of 52) sorted by relevancy

1 2 3

  /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);
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);
tsan_mutex.cc 192 // Create reader threads.
193 pthread_t threads[kThreadCount]; local in function:__tsan::TEST
195 pthread_create(&threads[t], 0, singleton_thread, &singleton);
197 pthread_join(threads[t], 0);
tsan_mutex.cc 192 // Create reader threads.
193 pthread_t threads[kThreadCount]; local in function:__tsan::TEST
195 pthread_create(&threads[t], 0, singleton_thread, &singleton);
197 pthread_join(threads[t], 0);
  /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...]
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/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);
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);
sanitizer_linux_test.cc 49 // For signaling to spawned threads that they should terminate.
125 InternalMmapVector<tid_t> threads(128); local in function:__sanitizer::ReadTidsToVector
126 EXPECT_TRUE(thread_lister->ListThreads(&threads));
127 return std::vector<tid_t>(threads.begin(), threads.end());
162 // If new threads have spawned during ThreadLister object's lifetime, calling
sanitizer_thread_registry_test.cc 71 // Create a bunch of threads.
81 // Finish, create and start more threads.
108 // Detach and finish and join remaining threads.
204 pthread_t threads[kNumShards]; local in function:__sanitizer::ThreadedTestRegistry
209 PTHREAD_CREATE(&threads[i], 0, RunThread, &args[i]);
212 PTHREAD_JOIN(threads[i], 0);
215 // of "threads" in thread_registry.
  /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);
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/tests/lib/libpthread/
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));
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));
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_once.c 113 pthread_t threads[NTHREADS]; local in function:ATF_TC_BODY
121 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, once2_threadfunc, &id[i]));
125 PTHREAD_REQUIRE(pthread_join(threads[i], NULL));
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_once.c 113 pthread_t threads[NTHREADS]; local in function:ATF_TC_BODY
121 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, once2_threadfunc, &id[i]));
125 PTHREAD_REQUIRE(pthread_join(threads[i], NULL));
  /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);
cpu_topology.c 191 const u_int threads = __SHIFTOUT(descs[1], local in function:x86_cpu_topology
195 smt_bits = ilog2(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]);
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/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);
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);
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
asan_interface_test.cc 125 pthread_t threads[kManyThreadsNumThreads]; local in function:TEST
128 PTHREAD_CREATE(&threads[i], 0,
132 PTHREAD_JOIN(threads[i], 0);

Completed in 35 milliseconds

1 2 3